Author Topic: Compiler can't find files?  (Read 15351 times)

Offline theOcelot

  • Multiple posting newcomer
  • *
  • Posts: 10
Compiler can't find files?
« 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!

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Compiler can't find files?
« Reply #1 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 ?

Offline theOcelot

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Compiler can't find files?
« Reply #2 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

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: Compiler can't find files?
« Reply #3 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.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline theOcelot

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Compiler can't find files?
« Reply #4 on: August 23, 2008, 10:07:41 pm »
My inexpressible thanks! That was it!