
Hello everyone, I've written some code with the serialization library, using a binary archive and some derived classes. If I compile with -DNDEBUG then the code does stops working. If I remove just this one switch then everything works fine. Using -O0 or -O3 does not matter. This exists in 1_34_1 and 1_35_0. I am using linux with gcc 4.1.2. Any suggestions? Thanks, Jeff

Jeff wrote:
Hello everyone,
I've written some code with the serialization library, using a binary archive and some derived classes. If I compile with -DNDEBUG then the code does stops working. If I remove just this one switch then everything works fine.
What do you mean by "stops working"? When I've experienced diff's between program behavior dependant on NDEBUG it's usually due to using an uninitialized variable. Jeff Flinn
participants (2)
-
Jeff
-
Jeff Flinn