Recognizing Compiler

CodeLite installation/troubleshooting forum
91458
CodeLite Enthusiast
Posts: 13
Joined: Thu Dec 12, 2013 9:25 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Recognizing Compiler

Post by 91458 »

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.
91458
CodeLite Enthusiast
Posts: 13
Joined: Thu Dec 12, 2013 9:25 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Recognizing Compiler

Post by 91458 »

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?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Recognizing Compiler

Post by eranif »

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:

Code: Select all

which g++
which mingw32-make
Also, please remember to attach the makefile to this thread

Thanks
Eran
Make sure you have read the HOW TO POST thread
91458
CodeLite Enthusiast
Posts: 13
Joined: Thu Dec 12, 2013 9:25 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Recognizing Compiler

Post by 91458 »

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.
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Recognizing Compiler

Post by eranif »

This is the offending line:

Code: Select all

CODE: SELECT ALL:=
This looks like a bad copy/paste from the forum to your environment variables
try removing this from your "Settings -> Environment variables"

Eran
Make sure you have read the HOW TO POST thread
91458
CodeLite Enthusiast
Posts: 13
Joined: Thu Dec 12, 2013 9:25 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Recognizing Compiler

Post by 91458 »

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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Recognizing Compiler

Post by eranif »

Please again, post the makefile

Eran
Make sure you have read the HOW TO POST thread
91458
CodeLite Enthusiast
Posts: 13
Joined: Thu Dec 12, 2013 9:25 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Recognizing Compiler

Post by 91458 »

As requested
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Recognizing Compiler

Post by eranif »

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
Make sure you have read the HOW TO POST thread
91458
CodeLite Enthusiast
Posts: 13
Joined: Thu Dec 12, 2013 9:25 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Recognizing Compiler

Post by 91458 »

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.
Post Reply