News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Compiling a Project

Started by mjcoaster, October 27, 2015, 08:06:27 PM

Previous topic - Next topic

mjcoaster

Hi, I am new to programming and I have 3 files that I want to compile at the same time. I have a header file, a demo file and a definition file for the class I created. When I build the project, I get this error in the build log:
mingw32-g++.exe -Wall -fexceptions -g -I"C:\C++ Code\fractions\" -c "C:\C++ Code\fractions\main.cpp" -o obj\Debug\fractions\main.o
mingw32-g++.exe: error: Code\fractions\main.cpp -o obj\Debug\fractions\main.o: No such file or directory
As I am new to programming, I have no idea what this message means or what I can do to fix this, any help with my problem?

stahta01

The Compiler you are using does NOT like spaces in the path.
Remove the space or replace with an underscore is what I would do.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

mjcoaster

Thanks so much, Troubleshooted a few more errors and got everything working.