News:

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

Main Menu

Compiler can't find files?

Started by theOcelot, August 23, 2008, 06:34:20 AM

Previous topic - Next topic

theOcelot

I was just working on a project, when this error jumps out:
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:
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!

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:-------------- 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

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.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

theOcelot

My inexpressible thanks! That was it!