The NeverEnding Story

General questions regarding the usage of CodeLite
smartmobili
CodeLite Enthusiast
Posts: 30
Joined: Wed May 20, 2009 1:54 am
Contact:

The NeverEnding Story

Post by smartmobili »

I wanted to see how codelite is progressing so I have downloaded and now I want to try a HelloWorl and
it's always the same story and since some menu have changed.
So I have a custom(using mingw-w64 toolchain) mingw install in C:\Developer\Mingw-NG\mingw32 and
I have added in environnment variable PATH=$PATH:C:/Developer/Mingw-NG/mingw32/bin

When I try to compile :

----------Build Started--------
C:\WINDOWS\system32\cmd.exe /c ""C:\Developer\Mingw-NG\mingw32\bin\mingw32-make.exe" -j 2 -f "HelloWorld.mk" ./Debug/main.o"
----------Building project:[ HelloWorld - Debug ] (Single File Build)----------
'makedir' is not recognized ...
mingw32-make: *** [Debug/main.o.d] Error 1
----------Build Ended----------
0 errors, 0 warnings
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: The NeverEnding Story

Post by eranif »

codelite does not under stand this:

Code: Select all

PATH=$PATH:C:/Developer/Mingw-NG/mingw32/bin
You need to change it into:

Code: Select all

PATH=$(PATH);C:/Developer/Mingw-NG/mingw32/bin
Two things to notice here:
- On Windows you *must* use ';' as the separator (semi-colon), since ':' is a valid part of the volume name
- codelite understands variables inside parentheses $(PATH) and not $PATH

Eran
Make sure you have read the HOW TO POST thread
smartmobili
CodeLite Enthusiast
Posts: 30
Joined: Wed May 20, 2009 1:54 am
Contact:

Re: The NeverEnding Story

Post by smartmobili »

eranif wrote:codelite does not under stand this:

Code: Select all

PATH=$PATH:C:/Developer/Mingw-NG/mingw32/bin
You need to change it into:

Code: Select all

PATH=$(PATH);C:/Developer/Mingw-NG/mingw32/bin
Two things to notice here:
- On Windows you *must* use ';' as the separator (semi-colon), since ':' is a valid part of the volume name
- codelite understands variables inside parentheses $(PATH) and not $PATH

Eran
Thanks I always forget that so now it works but when I put a breakpoint near printf it doesn't work :

For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from C:\Developer\Mingw-NG\home\Vincent\HelloWorld\Debug/./HelloWorld.exe...
done.
Debuggee process ID: 3920
Breakpoint creation unsuccessful
[New Thread 3920.0xd38]
Continuing...
Program exited normally.
Debug session ended

When I open a msys/mingw console and I try to put a breakpoint manually it works fine :

(gdb) b 5
Breakpoint 1 at 0x40173e: file C:/Developer/Mingw-NG/home/Vincent/HelloWorld/main.cpp, line 5.
(gdb) r
Starting program: C:\Developer\Mingw-NG\home\Vincent\HelloWorld\Debug/HelloWorld.exe
[New Thread 360.0x9e4]
warning: Can not parse XML library list; XML support was disabled at compile time

Breakpoint 1, main (argc=1, argv=0x3e2cf0)
at C:/Developer/Mingw-NG/home/Vincent/HelloWorld/main.cpp:5
5 printf("hello world\n");
(gdb) continue
Continuing.
hello world

Program exited normally.
(gdb)
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: The NeverEnding Story

Post by eranif »

smartmobili wrote:For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from C:\Developer\Mingw-NG\home\Vincent\HelloWorld\Debug/./HelloWorld.exe...
done.
Debuggee process ID: 3920
Breakpoint creation unsuccessful
[New Thread 3920.0xd38]
Continuing...
Program exited normally.
Debug session ended
Please enable the 'full debugger logging' I cant understand from this why the breakpoint insertion failed

See also:
http://codelite.org/forum/viewtopic.php ... 3562#p3562
Eran
Make sure you have read the HOW TO POST thread
Post Reply