From: <Pet...@es...> - 2002-05-21 09:17:16
|
> Perhaps VC++ in Debug mode and gcc with -g automatically defines assert. I don't know about VC++, but for gcc at least one of the dashboard builds runs without -g (and with -O3) so for gcc that problem should have been catched. Peter. |
From: Amitha P. <pe...@cs...> - 2002-05-21 09:27:09
|
> I don't know about VC++, but for gcc at least one of the dashboard > builds runs without -g (and with -O3) so for gcc that problem should > have been catched. Well, #include <string> int main() { assert(0); } compiles and links with gcc 2.95.3 and 3.0.4. I guess some of the other includes just happened to include assert somewhere. And the nightly build from Manchester has asserts, which probably defines the macro. Amitha. |
From: Geoffrey C. <ge...@cr...> - 2002-05-21 09:36:13
|
There is actually something more seriously wrong with vcl_assert in VC6: I have some code which runs fine under both Debug and Release, but under Release it gives different (incorrect) results (although it does not seg-fault and exhibit any other naughty behaviour). I finally traced it to having something to do with the definition of assert in vcl_assert, but I didn't bother to go any further. Geoff. |