[gmx-developers] Debugging using gdb
Rossen Apostolov
rossen at kth.se
Sat Sep 24 07:21:04 CEST 2011
Hi,
>> Details:
>> I compiled the modified code using
>> > ./configure CC=gcc --prefix=/home/shachi/gromacs-4.5.1.o
>> --enable-double --with-fft=fftw3 --without-x --enable-debug
>> --program-suffix=_p
>> > export CFLAGS=-g (even though --enable-debug should already add this)
>
> --enable-debug doesn't do anything AFAICR. Neither does make look at
> environment variables. Set your CFLAGS before configure, and this
> should work. You will see the -g flag in the make output when it calls
> the compiler, if things are working right.
If you use CMake for configuring you can set CMAKE_BUILD_TYPE=Debug.
Rossen
More information about the gromacs.org_gmx-developers
mailing list