Hello,
I'm encountering problems using 'xerces-c-3.0.1-x86-windows-vc-7.1'. There
is a linkage prob.
My purpose is to make a win32 API appli (in c++) able to parse xml files.
Then I've download the ''xerces-c-3.0.1-x86-windows-vc-7.1'' lib and installed
the path to lib and includes towards this lib.
It seems to be a call to a dll the prob...but I've installed the 2 dll
[xerces-c_3_0D.dll + xerces-c_3_0.dll] in many places without results.
Thank you for any suggestion.
Claude
-----------------------------------------------------------------------
CONTEXT: os windows XP, IDE: visual c++ express/DEV c++
/////En extract of code/////////////////////>///////////////////////
...
//compile AND link ------------------>
#include <xercesc/util/PlatformUtils.hpp>
using namespace xercesc;
//<-------------------- compile AND link
...
//compile BUT don't link ->
try {
XMLPlatformUtils::Initialize(); // <--- link fails there
}
catch (const XMLException& toCatch) {
// Do your failure processing here
return 1;
}
//<- compile BUT don't link
/////En extract of code///////////////////</////////////////////////
ERRORS////////////////////////////////////>/////////////////////////
Édition des liens en cours...
main.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport)
public: static void __cdecl xercesc_3_0::XMLPlatformUtils::Initialize(char
const * const,char const * const,class xercesc_3_0::PanicHandler * const,class
xercesc_3_0::MemoryManager * const)"
(__imp_?initial...@xmlplatformutils@xercesc_3_0@@saxqbd0qavpanichand...@2@qavmemorymana...@2@@Z)
référencé dans la fonction "void __cdecl xmlTest(void)" (?xmlTest@@YAXXZ)
main.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport)
public: static char const * const xercesc_3_0::XMLUni::fgXercescDefaultLocale"
(__imp_?fgxercescdefaultloc...@xmluni@xercesc_3_0@@2QBDB)
C:\Documents and Settings\claude_antidot\My Documents\Visual Studio
2008\Projects\todotooolIII\Debug\todotooolIII.exe : fatal error LNK1120: 2
externes non résolus
////////////////////////////////////////////</////////////////////////
_________________________________________________________________
Show them the way! Add maps and directions to your party invites.
http://www.microsoft.com/windows/windowslive/products/events.aspx