Code::Blocks Forums

User forums => Help => Topic started by: theOcelot on August 23, 2008, 06:34:20 am

Title: Compiler can't find files?
Post by: theOcelot on August 23, 2008, 06:34:20 am
I was just working on a project, when this error jumps out:
Code
Compiling: C:\Documents and Settings\Brian Davidson\Desktop\c2k\hello.cpp
mingw32-g++.exe: and: No such file or directory
mingw32-g++.exe: Settings\Brian: No such file or directory
mingw32-g++.exe: Davidson\Desktop\c2k\hello.cpp -o C:\Documents: Invalid argument
mingw32-g++.exe: and: No such file or directory
mingw32-g++.exe: Settings\Brian: No such file or directory
mingw32-g++.exe: Davidson\Desktop\c2k\hello.o: No such file or directory
mingw32-g++.exe: no input files
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

I think the last change I made was adding a linker directory. Over at GDNet they said it was spaces in the filename, but I've never had a problem with spaces before, and the problem stayed much the same when I moved the project to C:\c2k. It was literally working just a minute before. I think the only thing I changed was adding a linker search directory in the compiler settings, but the problem stayed when I removed it.

The error as it currently stands is:
Code
Compiling: main.cpp
mingw32-g++: no input files

This is after moving the project to the aforementioned location, and removing/re-adding all the project files, in case a full pathname had been stored in the project file, and restarting C::B.

It's much the same for hello world.

Please help!
Title: Re: Compiler can't find files?
Post by: Jenna on August 23, 2008, 09:45:42 am
Please send full commandline:
Switch "Settings->Compiler & Debugger->tab "Other" (rightmost tab)->Compiler logging" to "Full command line" and do a rebuild.

Which version of C::B do you use ?
Title: Re: Compiler can't find files?
Post by: theOcelot on August 23, 2008, 06:42:27 pm
Version 8.02

Full command line:
Code
-------------- Build: Debug in c2k ---------------

mingw32-g++.exe -Wall -fexceptions  -g  -Wall   -I"C:\Program Files\Boost\boost_1_35_0\"  -c C:\c2k\main.cpp -o obj\Debug\main.o
mingw32-g++.exe: no input files
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
Title: Re: Compiler can't find files?
Post by: TDragon on August 23, 2008, 06:46:20 pm
Find where the path C:\Program Files\Boost\boost_1_35_0\ is specified and remove the trailing backslash: C:\Program Files\Boost\boost_1_35_0.
Title: Re: Compiler can't find files?
Post by: theOcelot on August 23, 2008, 10:07:41 pm
My inexpressible thanks! That was it!