W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2005

Re: How to get around multiple 'MemAlloc' linkages?

From: Cory Nelson <phrosty@gmail.com>
Date: Tue, 15 Mar 2005 08:44:28 -0800
Message-ID: <9b1d06140503150844f0c9dbc@mail.gmail.com>
To: Christopher Woods <cwoods_eol@yahoo.com>
Cc: html-tidy@w3.org

Make sure any libs you statically link to are using the same CRT as your app.

On Mon, 14 Mar 2005 12:31:27 -0800 (PST), Christopher Woods
<cwoods_eol@yahoo.com> wrote:
> (First attempted post seems to have vanished into the ether...) 
> Hi - I'm using the 10 March 2005 CVS codebase (latest) and I've run into an
> issue when adding Tidy to my project w/ MSVC6.0sp6 and static linking.  I'm
> getting: 
> error C2733: second C linkage of overloaded function 'MemAlloc' not allowed 
> error C2733: second C linkage of overloaded function 'MemFree' not allowed 
> messages from the compiler.  I have another 3rd Party DLL (a memory
> manager/debugger) that appears to declare/use MemAlloc and MemFree and since
> these are both using C linkages, there is a collision in the names. 
> I'm not quite sure of the best workaround/fix for this issue. 
> Can the Memory functions declared in platform.h be moved to another file
> (say maybe alloc.h or tidyalloc.h)?  Would there still be a name collision? 
> Or do I need to go through the Tidy Source replacing: 
> MemAlloc -> tidyMemAlloc 
> MemFree -> tidyMemFree 
> MemRealloc -> tidyMemRealloc (just to be consistent) 
> ? 
> (I don't have the source for the other DLL so I can't do anything there.) 
> Thanks in advance, 
> -Christopher M. Woods
> cwoods underscore eol at yahoo dot com
>  ________________________________
> Do you Yahoo!?
>  Yahoo! Mail - Easier than ever with enhanced search. Learn more. 

Cory Nelson
Received on Tuesday, 15 March 2005 16:45:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:55 GMT