User forums > Help
Compiler can't find files?
(1/1)
theOcelot:
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
--- End code ---
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
--- End code ---
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!
Jenna:
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 ?
theOcelot:
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
--- End code ---
TDragon:
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.
theOcelot:
My inexpressible thanks! That was it!
Navigation
[0] Message Index
Go to full version