Is there a way to debug C++ projects from the google code repository. I tried all the well known ide's like eclipse, netbeans, codeblock, kdevelop..but somehow they don't seem to work. I also tried to create a makefile in order to import the project into the ide using:
all:
g++ code_dir/*/*.?pp -o fake
But somehow nothing seems to work. I am stuck at it for more than 100 hours...does anyone know how to debug the project
with the help of an ide.
Somehow kdevelop works better than the others..but the debug option does not work for the project and it is not able to find the header files which are within the project...can someone please help.
You could add the -ggdb flag to have more debugging information.
The headers are in the include directory. (so you need to configure your IDE to search there)
@Moschops First and foremost thanks a ton for replying. when i am building using 'make' I am getting the following error:
In member function ‘void BTree<T>::packLeaves(S&, std::vector<std::pair<V, unsigned int>, std::allocator<std::pair<V, unsigned int> > >&) [with S = AggregatedFactsSegment::IndexImplementation::LeafEntrySource, V = AggregatedFactsSegment::IndexImplementation::InnerKey, T = AggregatedFactsSegment::IndexImplementation]’:
cc1plus: internal compiler error: Segmentation fault
Is there a way to get around this error. Thanks a ton for helping again. Really appreciate your effort.
I get similar warnings, but they're just warnings about an unused variable which isn't a problem. Looks like your compiler, however, has a fault. I built using GCC V4.0.2 ( g++ --version)
If your compiler is just getting lost in the warnings, removing -Wall and -Wextra from the makefiles will stop it warning on these unused variables.
@Moschops Thanks a ton again for replying. When i am using the following flags I am not getting any error:
make CFLAGS="-g -O0" CXXFLAGS="-g -O0" STAGE2_CFLAGS="-g -O0"
STAGE3_CFLAGS="-g -O0"
But i am not getting the reason as to why by setting these flags i am not getting any error.
Is it logically correct to use these flags?
Also sorry for disturbing again. And thanks a lot again. Also please excuse my ignorance.
Also mu editors version is:
g++ (Ubuntu/Linaro 4.4.4-14ubuntu5.1) 4.4.5