Code::Blocks Forums

User forums => Help => Topic started by: mjcoaster on October 27, 2015, 08:06:27 pm

Title: Compiling a Project
Post by: mjcoaster on October 27, 2015, 08:06:27 pm
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?
Title: Re: Compiling a Project
Post by: stahta01 on October 27, 2015, 09:01:34 pm
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.
 
Title: Re: Compiling a Project
Post by: mjcoaster on October 27, 2015, 09:42:36 pm
Thanks so much, Troubleshooted a few more errors and got everything working.