Recognizing Compiler
-
- CodeLite Enthusiast
- Posts: 13
- Joined: Thu Dec 12, 2013 9:25 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Recognizing Compiler
I used that command in the "Build" settings, replacing the original. That did not work:
C:\Windows\system32\cmd.exe /c "mingw32-make SHELL=CMD.EXE -j 4 -e -f Makefile"
"----------Building project:[ HelloWorld2 - Debug ]----------"
HelloWorld2.mk:66: *** multiple target patterns. Stop.
mingw32-make: *** [All] Error 2
mingw32-make[1]: Entering directory `C:/Users/Mark/CPP_Project1/HelloWorld2'
mingw32-make[1]: Leaving directory `C:/Users/Mark/CPP_Project1/HelloWorld2'
Makefile:4: recipe for target `All' failed
0 errors, 0 warnings
It seems whatever error remains the same.
C:\Windows\system32\cmd.exe /c "mingw32-make SHELL=CMD.EXE -j 4 -e -f Makefile"
"----------Building project:[ HelloWorld2 - Debug ]----------"
HelloWorld2.mk:66: *** multiple target patterns. Stop.
mingw32-make: *** [All] Error 2
mingw32-make[1]: Entering directory `C:/Users/Mark/CPP_Project1/HelloWorld2'
mingw32-make[1]: Leaving directory `C:/Users/Mark/CPP_Project1/HelloWorld2'
Makefile:4: recipe for target `All' failed
0 errors, 0 warnings
It seems whatever error remains the same.
-
- CodeLite Enthusiast
- Posts: 13
- Joined: Thu Dec 12, 2013 9:25 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Recognizing Compiler
One more thing to add.
I tried the Build option "Compile Current File", I thought this would invoke the g++ compiler to generate an executable.
This also seems to need a makefile in order to work.
Is there any way to get CL to compile without invoking make?
I tried the Build option "Compile Current File", I thought this would invoke the g++ compiler to generate an executable.
This also seems to need a makefile in order to work.
Is there any way to get CL to compile without invoking make?
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Recognizing Compiler
Can you post the makefile "HelloWorld2.mk" on the forum?
Can you please confirm which mingw32-make are you using?
TO confirm this:
Right click on an open editor's tab label and select 'Open Shell at file location'
Next, type from teh command line:
Also, please remember to attach the makefile to this thread
Thanks
Eran
Can you please confirm which mingw32-make are you using?
TO confirm this:
Right click on an open editor's tab label and select 'Open Shell at file location'
Next, type from teh command line:
Code: Select all
which g++
which mingw32-make
Thanks
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 13
- Joined: Thu Dec 12, 2013 9:25 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Recognizing Compiler
g++ C:/MinGW-4.7.1/bin/g++.EXE
mingw32-make - C:/MinGW-4.7.1/bin/mingw32-make.EXE
The file attached is the makefile, I had to change the extension to allow it to be uploaded.
mingw32-make - C:/MinGW-4.7.1/bin/mingw32-make.EXE
The file attached is the makefile, I had to change the extension to allow it to be uploaded.
You do not have the required permissions to view the files attached to this post.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Recognizing Compiler
This is the offending line:
This looks like a bad copy/paste from the forum to your environment variables
try removing this from your "Settings -> Environment variables"
Eran
Code: Select all
CODE: SELECT ALL:=
try removing this from your "Settings -> Environment variables"
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 13
- Joined: Thu Dec 12, 2013 9:25 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Recognizing Compiler
I removed the offending line and I receive a new error message:
C:\Windows\system32\cmd.exe /c "mingw32-make SHELL=CMD.EXE -j 4 -e -f Makefile"
"----------Building project:[ HelloWorld2 - Debug ]----------"
mingw32-make[1]: Entering directory `C:/Users/Mark/CPP_Project1/HelloWorld2'
mingw32-make[1]: *** No rule to make target `Debug/main.o', needed by `Debug/HelloWorld2'. Stop.
mingw32-make[1]: *** Waiting for unfinished jobs....
mingw32-make[1]: Leaving directory `C:/Users/Mark/CPP_Project1/HelloWorld2'
mingw32-make: *** [All] Error 2
Makefile:4: recipe for target `All' failed
0 errors, 0 warnings
C:\Windows\system32\cmd.exe /c "mingw32-make SHELL=CMD.EXE -j 4 -e -f Makefile"
"----------Building project:[ HelloWorld2 - Debug ]----------"
mingw32-make[1]: Entering directory `C:/Users/Mark/CPP_Project1/HelloWorld2'
mingw32-make[1]: *** No rule to make target `Debug/main.o', needed by `Debug/HelloWorld2'. Stop.
mingw32-make[1]: *** Waiting for unfinished jobs....
mingw32-make[1]: Leaving directory `C:/Users/Mark/CPP_Project1/HelloWorld2'
mingw32-make: *** [All] Error 2
Makefile:4: recipe for target `All' failed
0 errors, 0 warnings
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Recognizing Compiler
Please again, post the makefile
Eran
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 13
- Joined: Thu Dec 12, 2013 9:25 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Recognizing Compiler
As requested
You do not have the required permissions to view the files attached to this post.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Recognizing Compiler
This is strange..
The makefile you posted is from the "Release" configuration, while the error you posted is for the "Debug" configuration
Can you confirm that you posted the correct Makefile?
EDIT: Can you please delete the makefile and try building again?
Eran
The makefile you posted is from the "Release" configuration, while the error you posted is for the "Debug" configuration
Can you confirm that you posted the correct Makefile?
EDIT: Can you please delete the makefile and try building again?
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 13
- Joined: Thu Dec 12, 2013 9:25 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Recognizing Compiler
I was futzing around, and forgot I changed things. I'm sorry for the waste of time. Attached is the makefile you wanted.
You do not have the required permissions to view the files attached to this post.