Re: Does Anyone Compile Aspell with -DNDEBUG?

Peter Kümmel <[email protected]> Sun, 01 Jun 2008 14:26:29 +0200
Newsgroups gmane.comp.gnu.aspell.devel
Message-ID <[email protected]>
Peter Kümmel wrote:
> Peter Kümmel wrote:
>> Kevin Atkinson wrote:
>>>
>>> So are you saying in order not to link with the release runtime 
>>> libraries NDEBUG can not be defined.  This in my option is extremely 
>>> stupid.
>>
>> I assume "NDEBUG can not be undefined and _DEBUG defined instead".
>>
>> Yes, only if we provide a dummy lib which provides the missing
>> debug functions (here with lyx it is only one)
> 
> Tried it, but lyx still crashes. 

It still links against both runtime libraries. All the stl debug code
is a the debug runtime lib. Therefore I think we could not use _DEBUG
with msvc in release mode.

> Maybe because of a LyX bug, then this is
> a good example for your "#undef NDEBUG" idea, or the reason is still the
> mixing of release runtime libs and _DEBUG.
> Will investigate it further.
> 
> 
>>
>>
>>>
>>> If this is the case, I don't think I can ever officially support 
>>> Aspell compiled with msvc.  At very least I won't be able to accept 
>>> bug reports for Windows binary built in release mode.  I will expand 
>>> on the reasons latter if necessary.
>>
>> I'm very interested in your reasons and especially your experience when
>> not using NDEBUG in release code, because it's new to me.
>>
>>
>>
>> _______________________________________________
>> Aspell-devel mailing list
>> [email protected]
>> http://lists.gnu.org/mailman/listinfo/aspell-devel
>>
> 

-- 
Peter Kümmel