User forums > Help
Problems with own makefile (mostly breakpoints don't work)
(1/1)
kai7:
Hi,
I have some problems with C::B using an own makefile. Here is the Situation:
The directories are:
DirContainsD:\Daten\C++\FrontDesignThe main directory of the projectD:\Daten\C++\FrontDesign\srcAll the source codeD:\Daten\C++\FrontDesign\FrontDesign.wxThe makefile generated with autoconfD:\Daten\C++\FrontDesign\FrontDesign.wx/srcThe 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:
--- Code: ---> 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.
--- End code ---
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:
--- Code: ---break MainWin.cpp:322
Breakpoint 1 at 0x4ae28c: file ../../src/MainWin.cpp, line 322.
--- End code ---
or this:
--- Code: ---break ../../src/MainWin.cpp:322
Breakpoint 1 at 0x4ae28c: file ../../src/MainWin.cpp, line 322.
--- End code ---
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
mandrav:
I think I 'll make it an option (use relative paths or not) because some projects work with absolute paths and some don't...
kai7:
This would be a good solution. So thank you very much...
-Kai
P.S.: I just looked through all the IDEs I found and I really think that C::B is the best free IDE you could get. Thank you for the great work.
kai7:
I have forgotten another problem (I workarounded it a while ago). C::B isn't able to find the files in the error messages of the compiler because they have the form: "../../src/MainWin.cpp:458: error: [...]". The workaround was to change regular expression of the error parsing (adding "\.\./\.\./" before the brackets for the file name).
Perhaps an option to specify a make working dir would be nice...
-Kai
Navigation
[0] Message Index
Go to full version