Hi Everyone,
I opened a simple Hello project at Linux and tried to build it. It gives the following log output for the simple hello cpp project.
-------------- Build: Debug in Hello ---------------
g++ -Wall -fexceptions -g -c /media/TRANSFER/Projects/Cpp/Test/Hello/main.cpp -o obj/Debug/main.o
Process terminated with status -1 (0 minutes, 0 seconds)
0 errors, 0 warnings
When I tried to compile the same code from the command line at a new opened terminal, it also refuses to compile the code and it gives the following message
g++ -Wall -fexceptions -g -c /media/TRANSFER/Projects/Cpp/Test/Hello/main.cpp -o obj/Debug/main.o
Assembler messages:
Fatal error: can't create obj/Debug/main.o: No such file or directory
When I tried to change the object output path as given in the following, it compiles and produces the object code, it works !!!
g++ -Wall -fexceptions -g -c /media/TRANSFER/Projects/Cpp/Test/Hello/main.cpp -o /media/TRANSFER/Projects/Cpp/Test/Hello/obj/Debug/main.o
It seems that g++ can not work at the project directory, and it needs a full path definition for output directory.
I can not resolve the problem, I'd be grateful to anyone Who can help me solving these weird problem ......
Regards
Cem