[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: assert in release is available on windows

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-11-18 01:00:37 CET

Barry Scott wrote:

>
>> Barry, please read what I wronte before trying to teach me C. In
>> MSVC, the
>> "assert" macro is implemented as a call to a support function. That
>> function is
>> not available in the Release version of the MS C runtime library,
>> which means
>> that _not_ defining NDEBUG _and_ linking against the release library
>> won't work.
>>
>> Your example "works" because, without any options, the compiler will
>> tell the
>> linker to use the debug library.
>
>
> This seems to work and ass.exe is linked against the release MSVCRT.dll.
> What have I misunderstood?

Well, well. Interesting. I spoke too hastily; _assert seems to be
present in version 7 of the release runtime library. I definitely
remember it not being there before; or perhaps it works for command-line
programs, but not for GUI apps.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 18 01:03:22 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.