error LNK2005: "public: static void __stdcall CObject::operator delete help 
Author Message
 error LNK2005: "public: static void __stdcall CObject::operator delete help

Anyone,

Please help me.  I'm having a problem getting SmartHeap to link properly
with MFC being used as a shared DLL.  The error mainly seems to revolve
around CObject::operator delete function.  I've done everything that the
SmartHeap(to be known as SH
from now on) documentation says to do, yet the linker problems keep a
comin'.
The following is when I don't include the SH libraries before CRT libraries:
(please excuse the "links")

Linking...
shdsmpmt.lib(shmaljmp.obj) : error LNK2005: "public: static void __stdcall

defined in edxscc.lib(PostConvArg.obj)

msvcrt.lib(dllmain.obj)

When I do include the SH libraries before CRT libraries, I get:

Linking...
edxscc.lib(PostConvArg.obj) : error LNK2005: "public: static void __stdcall

defined in shdsmpmt.lib(shmaljmp.obj)
edxscc.lib(global.obj) : error LNK2005: "public: static void __stdcall

defined in shdsmpmt.lib(shmaljmp.obj)
edxscc.lib(AlfSupport.obj) : error LNK2005: "public: static void __stdcall

defined in shdsmpmt.lib(shmaljmp.obj)

(NOTE:  The edxscc.lib is our "core" library (static library) that also was
built using MFC as a shared DLL,
but no SH included in the building)

If anyone knows how to solve this, or if you need more info from me, please
get
back to me.  Thank you in advance.

Sincerely,

John



Tue, 16 Mar 2004 01:44:30 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. error LNK2005: "public: static void __stdcall CObject::operator delete help

2. operator delete(void*) / strange error C2573

3. new public void draw() versus public void override draw()

4. Struggling with LNK2005 __cdecl operator delete already defined

5. What is causing "error LNK2005:..."?

6. STL app spends 25% of time in operator delete(void*)

7. what is "static void usage()"?

8. Question about the operator "delete"

9. Linker Error:nafxcw.lib(afxmem.obj):error LNK2005:"void * __cdecl operator new...

10. static void* operator new

11. CObList and "operator= not available" error

12. Error when "delete[] m_pHashTable" in CMap

 

 
Powered by phpBB® Forum Software