[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: kdebug & compilation
From:       Stephan Kulow <coolo () kde ! org>
Date:       1999-02-28 17:21:11
[Download RAW message or body]

Matt Koss wrote:
> 
> I have started to use kdebug macro for debugging.
> 
> I tried to compile my program with -DNDEBUG option, so that all debug info goes
> away. I was curious about the change in size of executable.
> 
> Guess what. It was even bigger after compilation !
> ( 239 kB instead of 194 kB without -DNDEBUG )
> 
> I hope that I did something wrong, because this cannot be true !
> 
> I did export CXXFLAGS=-DNDEBUG , then I ran configure , make clean and make
> 
Well, depends on what have been in your CXXFLAGS before :)
If it has been -O2, that's definitly possible. Try adding
-DNDEBUG to CXXFLAGS, not replace your old settings.

Greetings, Stephan

-- 
A big plus when your parents split up, is, that you don't
have to imagine them doing it again. * Mr. Rhodes

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic