Boost logo

Boost Users :

From: Steve Byan (Steve.Byan_at_[hidden])
Date: 2007-11-30 13:33:03


On Nov 30, 2007, at 12:05 PM, nisha kannookadan wrote:

> I changed now the code to something runnable and have it also in
> matlab,
> u will see, its way slower in C++.

[snip]

> #define DNDEBUG

As Justin told you earlier, the line above should be:

#define NDEBUG

to eliminate the overhead of bounds-checking, etc.

On the compiler command-line, it is "-DNDEBUG", which is the
concatenation of the "-D" option, meaning to define a preprocessor
symbol, and "NDEBUG", the literal symbol.

Regards,
-Steve

--
Steve Byan
Steve.Byan_at_[hidden]

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net