Results 1 to 2 of 2
Dear all,
This is my first thread
I have created some C++ classes.
In order to compiling these classes, I use a Makefile.
In the Makefile there is the following ...
- 10-13-2007 #1Just Joined!
- Join Date
- Oct 2007
- Posts
- 1
compiling with debug options
Dear all,
This is my first thread
I have created some C++ classes.
In order to compiling these classes, I use a Makefile.
In the Makefile there is the following line:
CFLAGS=-O2 -DNDEBUG=1 -DWITH_PARSIM -DWITH_NETBUILDER
The option -DNDEBUG=1 disables the debug mode, so that the lines beetween #ifdef DEBUG and #endif statements are not compiled.
If I want to compile these classes in debug mode, I could modify the Makefile by replacing -DNDEBUG=1 with -DDEBUG.
Is it possible compiling these classes in debug mode without modifying the Makefile?
Thanks a lot!
- 10-13-2007 #2
Sure.
or, if you're specifying a particular target,Code:make "CFLAGS=-O2 -DDEBUG -DWITHPARSIM -DWITH_NETBUILDER"
Hope this helps.Code:make yourfavoritetarget "CFLAGS=-O2 -DDEBUG -DWITHPARSIM -DWITH_NETBUILDER"


Reply With Quote