Can't compile g++ simple console executable.

CodeLite installation/troubleshooting forum
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Can't compile g++ simple console executable.

Post by eranif »

Try this:
Open a shell from within codelite (right click on a any open tab label and select 'open shell at file path')
Next , type this from the command line:

Code: Select all

makedir debug
This where the makefile fails

Eran
Make sure you have read the HOW TO POST thread
m75
CodeLite Enthusiast
Posts: 10
Joined: Mon May 06, 2013 2:16 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: Can't compile g++ simple console executable.

Post by m75 »

Hi.
Debug directory existed. It is created when I try to build project.
I deleted the Debug directory, and I did as you told me.
The project still does not compile.
Greetings.

Code: Select all

C:\WINDOWS\system32\cmd.exe /c "mingw32-make.exe -j 1 -e -f  "Hello_world_wsp.mk""
----------Building project:[ Hello_world - Debug ]----------
mingw32-make[1]: Entering directory `C:/Devel/w32/Codelite/hello_world'
mingw32-make[1]: *** [Debug/.d] Error 259
Hello_world.mk:88: recipe for target `Debug/.d' failed
mingw32-make[1]: Leaving directory `C:/Devel/w32/Codelite/hello_world'
mingw32-make.exe: *** [All] Error 2
Hello_world_wsp.mk: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: Can't compile g++ simple console executable.

Post by eranif »

According to the makefile you uploaded the target that failed was Debug/.d which only executes makedir "Debug/.d"
Notice that I wrote here "makedir" and not "mkdir"
This is why I wanted you to execute it it from the command line , to see if the makedir executable can be run properly.


Other then that I am out of ideas without access to that machine
Eran
Make sure you have read the HOW TO POST thread
m75
CodeLite Enthusiast
Posts: 10
Joined: Mon May 06, 2013 2:16 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: Can't compile g++ simple console executable.

Post by m75 »

Hi.
I made everything as instructed.
Open a shell from within Codelite (right click on a any open tab label and select 'open shell at file path')
Next , type this from the command line:

Code: Select all

makedir debug
Nothing happened because the directory Debug already existed.
So I closed Codelite, I removed the Debug directory and repeated the previous statement,
type this from the command line:

Code: Select all

makedir debug
It was created debug directory.
Codelite I ran and tried to build a project with a negative effect.

Code: Select all

C:\WINDOWS\system32\cmd.exe /c "mingw32-make.exe -j 1 -e -f  "Hello_world_wsp.mk""
----------Building project:[ Hello_world - Debug ]----------
mingw32-make[1]: Entering directory `C:/Devel/w32/Codelite/hello_world'
mingw32-make[1]: *** [Debug/.d] Error 259
Hello_world.mk:88: recipe for target `Debug/.d' failed
mingw32-make[1]: Leaving directory `C:/Devel/w32/Codelite/hello_world'
mingw32-make.exe: *** [All] Error 2
Hello_world_wsp.mk:4: recipe for target `All' failed
0 errors, 0 warnings
m75
CodeLite Enthusiast
Posts: 10
Joined: Mon May 06, 2013 2:16 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: Can't compile g++ simple console executable.

Post by m75 »

Hi.
It occurred to me to mind.
Since I have also installed Codeblocks which works fine I'll try to do export makefile and import it into codelite.
Thank you for your help.
Greetings.
m75
CodeLite Enthusiast
Posts: 10
Joined: Mon May 06, 2013 2:16 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: Can't compile g++ simple console executable.

Post by m75 »

Hi.
I was able to finally build the project.
I deleted Codelite directory located in C:\Documents and Settings\user\Application Data\CodeLite.
I started again and chose Codelite build settings, I set the PATH environment variable to c:\mingw-4.7.1\bin;C:\Program Files CodeLite.
Previous set $(PATH);c:\mingw-4.7.1\bin;C:\Program Files\CodeLite have not worked.
I have installed various compilers such as WinAVR, sdcc, Sourcery for arm, m68k and apparently occurred between these conflicting
I created a new workspace and new project hello_world the console, I built it and it works.
Thank you for your help and your time.
Greetings.
Post Reply