Code::Blocks Forums

User forums => Help => Topic started by: dkaip on February 21, 2016, 11:29:03 pm

Title: g++: fatal error: no input files
Post by: dkaip on February 21, 2016, 11:29:03 pm
I just install Ubuntu 15.10 and then C::B(13.12)
Making a simple console c++ project in my desktop and runs it with F9 compiler says ...

t seems that this project has not been built yet.
Do you want to build it now?

and in Yes i have problem ...


-------------- Build: Debug in ASAAAS (compiler: GNU GCC Compiler)---------------

g++ -Wall -fexceptions -g  -c "/home/a/Επιφάνεια εργασίας/ASAAAS/main.cpp" -o obj/Debug/main.o
g++  -o bin/Debug/ASAAAS obj/Debug/main.o   
g++: error: obj/Debug/main.o: Δεν υπάρχει τέτοιο αρχείο ή κατάλογος
g++: fatal error: no input files
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))


But if make another project in folder without Greek characters in folders like ... /home/a/aaaaaa/ssssssss  for example, project run ok.


-------------- Build: Debug in ssssssss (compiler: GNU GCC Compiler)---------------

g++ -Wall -fexceptions -g  -c /home/a/aaaaaa/ssssssss/main.cpp -o obj/Debug/main.o
g++  -o bin/Debug/ssssssss obj/Debug/main.o   
Output file is bin/Debug/ssssssss with size 19.55 KB
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 

-------------- Run: Debug in ssssssss (compiler: GNU GCC Compiler)---------------

Checking for existence: /home/a/aaaaaa/ssssssss/bin/Debug/ssssssss
Executing: xterm -T ssssssss -e /usr/bin/cb_console_runner LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. /home/a/aaaaaa/ssssssss/bin/Debug/ssssssss  (in /home/a/aaaaaa/ssssssss/.)
Process terminated with status 0 (0 minute(s), 6 second(s))


Any idea how solve this problems?
Title: Re: g++: fatal error: no input files
Post by: oBFusCATed on February 21, 2016, 11:43:55 pm
Don't created projects in non-ascii named folders:)

Does the first set of commands work if you execute them in a terminal?
Title: Re: g++: fatal error: no input files
Post by: dkaip on February 22, 2016, 09:24:15 am
Does the first set of commands work if you execute them in a terminal?
No.

But in Ubuntu 14  all compilations are ok with non ASCII characters.
I will check if folder properties have problem.
Title: Re: g++: fatal error: no input files
Post by: raynebc on February 22, 2016, 08:14:56 pm
The generic GCC file I/O libraries (ie. fopen) in Windows don't have good (or perhaps any) support for file paths with non ASCII characters in them.