[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-atl
Subject:    Re: atlimpl.cpp causing link errors when switching from /ML to /MT
From:       Joe O'Leary <joleary () ARTISOFT ! COM>
Date:       2000-03-30 17:27:23
[Download RAW message or body]


ATL defines its own versions of malloc and free when you have _ATL_MIN_CRT
defined in the preprocessor settings.  Remove it and you should be OK

Joe

    -----Original Message-----
   From:   Tom Butcher <tom@WHATUWANT.NET>@ARTISOFT
   Sent:   Thursday, March 30, 2000 12:18 PM
   To:     ATL@DISCUSS.MICROSOFT.COM
   Subject:  atlimpl.cpp causing link errors when switching from /ML to /MT

   I'm curious if anyone has information on the following issues I'm seeing.
   We're building a DLL server that needs to link the multithreaded runtime
   libraries.  However, when I switch from /ML to /MT in the
   ReleaseMinDependency build, I get the following warnings from the compiler:


   C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\atlimpl.cpp(115) :
   warning C4273: 'malloc' : inconsistent dll linkage.  dllexport assumed.
   C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\atlimpl.cpp(143) :
   warning C4273: 'calloc' : inconsistent dll linkage.  dllexport assumed.
   C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\atlimpl.cpp(148) :
   warning C4273: 'realloc' : inconsistent dll linkage.  dllexport assumed.
   C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE\atlimpl.cpp(166) :
   warning C4273: 'free' : inconsistent dll linkage.  dllexport assumed.

----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://discuss.microsoft.com/archives/index.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic