Author Topic: Compiling a Project  (Read 2366 times)

Offline mjcoaster

  • Single posting newcomer
  • *
  • Posts: 2
Compiling a Project
« 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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Compiling a Project
« Reply #1 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.
 
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline mjcoaster

  • Single posting newcomer
  • *
  • Posts: 2
Re: Compiling a Project
« Reply #2 on: October 27, 2015, 09:42:36 pm »
Thanks so much, Troubleshooted a few more errors and got everything working.