You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by l_...@alta.dk on 2001/12/17 15:34:59 UTC

Single threaded Xerces dll MS VC++ 6

Hi 

I have tried to build a Xerces dll which is single threaded in MS VC++ 6,
but when I link to the DLL i get the errors

nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol 
__endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol 
__beginthreadex

(It look like _MT is defined)

Does any one have any suggestions?

Best Regards 
                                Leif Pedersen
                                www.alta.dk 


P.S. Bellow is my previous efforts.
______________________________________________________________

Changes in project settings C/C++ to 
        /nologo /MLd /W3 /Gm /GX /Zi /Od    ...    /D "_ATL_SINGLE_THREADED" ...
and in project setting link 
        from  ws2_32.lib        to  wsock32.lib

Changes in Com/StdAfx.h 
from
        #define _ATL_APARTMENT_THREADED
to
        #ifndef _ATL_SINGLE_THREADED
        #define _ATL_SINGLE_THREADED
        #endif

        #ifdef _MT
        #undef _MT
        #endif

In Util/Platform/Win32/Win32PlatformUtils.cpp have I added
        #ifndef _ATL_SINGLE_THREADED
        #define _ATL_SINGLE_THREADED
        #endif

        #ifdef _MT
        #undef _MT
        #endif

In XercesDefs.hpp have I added
        #ifndef XML_WIN32
        #define XML_WIN32
        #endif

        #ifndef _ATL_SINGLE_THREADED
        #define _ATL_SINGLE_THREADED
        #endif

        #ifdef _MT
        #undef _MT
        #endif
______________________________________________________________