Hi,
I have some problems with C::B using an own makefile. Here is the Situation:
The directories are:
Dir | Contains |
D:\Daten\C++\FrontDesign | The main directory of the project |
D:\Daten\C++\FrontDesign\src | All the source code |
D:\Daten\C++\FrontDesign\FrontDesign.wx | The makefile generated with autoconf |
D:\Daten\C++\FrontDesign\FrontDesign.wx/src | The object files |
I am using gcc 3.4.5 and the gdb 6.3.2.
First I have a smaller problem:
C::B is running make in the main dir of my project, but there is not the makefile. Is there a way to change it? As a workaround I wrote a wrapper script that is called instead of "make"
And a bigger one:
Breakpoints don't work. When I set a breakpoint and start GDB I get the following messages:
> break D:/Daten/C++/FrontDesign/src/MainWin.cpp:322
No source file named D:/Daten/C++/FrontDesign/src/MainWin.cpp.
Breakpoint 1 (D:/Daten/C++/FrontDesign/src/MainWin.cpp:322) pending.
The program is compiled with dedbug symbols. The problem is, that gdb can't handle the absolute paths. When I start gdb manually and enter this:
break MainWin.cpp:322
Breakpoint 1 at 0x4ae28c: file ../../src/MainWin.cpp, line 322.
or this:
break ../../src/MainWin.cpp:322
Breakpoint 1 at 0x4ae28c: file ../../src/MainWin.cpp, line 322.
it's working well. I think the problem is, that the code was compiled using relatives paths and gdb can't convert them to the absolute paths.
Any ideas?
Thank you
Kai