New programmer: Build issue

General questions regarding the usage of CodeLite
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: New programmer: Build issue

Post by eranif »

Can you post some more info? like how your compilers are configured? the build error?
Eran
Make sure you have read the HOW TO POST thread
miturria
CodeLite Curious
Posts: 1
Joined: Wed Aug 20, 2014 11:11 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: New programmer: Build issue

Post by miturria »

I am having the same SHELL environment issue with CodeLite (we have to have Cygwin installed as well as CodeLite with MinGW). I tried the pre-release 6.1 version that is referenced in this thread, but now I get a different error:

Code: Select all

C:\Windows\system32\cmd.exe /c "C:/MinGW-4.8.1/bin/mingw32-make.exe -j4 -e -f  Makefile"
----------Building project:[ test - Debug ]----------
mingw32-make[1]: Entering directory 'C:/Users/itstaff/Desktop/test'
C:/MinGW-4.8.1/bin/g++.exe   -c  "C:/Users/itstaff/Desktop/test/main.cpp" -g -O0 -Wall  -o ./Debug/main.cpp.o -I. -I.
g++.exe: error: C:/Users/itstaff/Desktop/test/main.cpp -g: No such file or directory
g++.exe: fatal error: no input files
compilation terminated.
mingw32-make[1]: *** [Debug/main.cpp.o] Error 1
test.mk:94: recipe for target 'Debug/main.cpp.o' failed
mingw32-make[1]: Leaving directory 'C:/Users/itstaff/Desktop/test'
mingw32-make.exe: *** [All] Error 2
Makefile:4: recipe for target 'All' failed
1 errors, 0 warnings
It looks like g++ thinks that 'C:/Users/itstaff/Desktop/test/main.cpp -g' is somehow a file name rather than a file name and an option?

The file itself certainly exists and just contains:

Code: Select all

#include <iostream>
 
using namespace std;
 
int main()
{
cout << "Hello world!" << endl;
 
return 0;
}
Any help would be appreciated.
Post Reply