Dear David,

Congratulations! You solved my problem.

Thank you very much.

Heitor Barbieri

David N Bertoni/Cambridge/IBM wrote:



There is no way Xalan or Xerces functions should have __stdcall linkage.  I
suspect you have modified your project settings so that everything is
__stdcall.   You cannot do this when you use Xalan and Xerces.

Select "Settings..." from the project menu.  Click on C/C++ and then select
"Code Generation" from the category drop-down.  Change the "Calling
convention:" drop-down from __stdcall to the __cdecl, which is the default.

If you have functions in your DLL that you want as __stdcall, use
__declspec to do that -- don't change the project settings.

Dave



Heitor Barbieri <[EMAIL PROTECTED] To: [email protected] ps-oms.org> cc: (bcc: David N Bertoni/Cambridge/IBM) Subject: link problem 11/27/2002 05:56 AM



I am trying to build a dll that uses xalan functions, but when MSVC
tries to link it complains about
linking the xalan's static member functions. How can I solve it ?

See the output:

Linking...
Ak_XPath.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static void __stdcall
XPathEvaluator::initialize(void)" ([EMAIL PROTECTED]@@SGXXZ)
Ak_XPath.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static void __stdcall
XMLPlatformUtils::Initialize(void)"
([EMAIL PROTECTED]@@SGXXZ)
Ak_XPath.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static void __stdcall
XMLPlatformUtils::Terminate(void)"
([EMAIL PROTECTED]@@SGXXZ)
Ak_XPath.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static void __stdcall
XPathEvaluator::terminate(void)" ([EMAIL PROTECTED]@@SGXXZ)
DOMTreeErrorReporter.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static char * __stdcall
XMLString::transcode(unsigned short const * const)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED])
Debug/AktoxSL.dll : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.


Best regards

Heitor Barbieri









Reply via email to