Re: Strange linker errors (LNK2005) in Release build only .... why ??
- From: "Krishnan R. S." <rskrishnan@xxxxxxxxxxx>
- Date: Sun, 13 Nov 2005 15:01:48 -0800
Hello Tom,
This is what I've resorted to now - the only downside being that all the
new calls in STL which land up using malloc will no longer be using
dlmalloc(). I'd rather not re-direct all STL containers by writing my own
allocator - way too intrusive and I'll be begging for trouble by missing
some corner conditions etc etc
On Unix* platforms we can build a "partially linked" image - i.e. not
resolving all the symbols to generate a sharedlib/dll. Why can't I find an
equivaent in Windows land ?!? Looks like the DLL's are quite tightly tied
together at link time....
Thanks,
rsk.
"Tom Widmer [VC++ MVP]" <tom_usenet@xxxxxxxxxxx> wrote in message
news:%23NiyMsq5FHA.3976@xxxxxxxxxxxxxxxxxxxxxxx
> Krishnan R.S. wrote:
>> So is there no way to override/replace malloc/free with my implementation
>> in
>> a dll ??
>
> Try adding USE_DL_PREFIX to your project defines.
>
> Tom
.
- References:
- Re: Strange linker errors (LNK2005) in Release build only .... why ??
- From: Nanda
- Re: Strange linker errors (LNK2005) in Release build only .... why ??
- From: Krishnan R.S.
- Re: Strange linker errors (LNK2005) in Release build only .... why ??
- From: Tom Widmer [VC++ MVP]
- Re: Strange linker errors (LNK2005) in Release build only .... why ??
- Prev by Date: Re: Strange linker errors (LNK2005) in Release build only .... why ??
- Next by Date: Re: Strange linker errors (LNK2005) in Release build only .... why ??
- Previous by thread: Re: Strange linker errors (LNK2005) in Release build only .... why ??
- Index(es):
Relevant Pages
|