xerces-c-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MBoudreaux <mboudre...@shff.com>
Subject Linker Error with Visual Studio 2003
Date Mon, 29 Jan 2007 17:40:05 GMT

I'm trying to learn the Xerces API for an XML application I have in the
works. I've read through the documentation a few times and I'm having
trouble compiling my application. I'm getting about ~50 Linker 2001 errors
(unresolved external symbols). I have the library linked in and the
directories are correctly defined in the project settings, so I'm a bit

Here is how my example application is linking in everything:

#pragma comment(lib, "xerces-c_2.lib")

#include <xercesc/sax2/SAX2XMLReader.hpp>
#include <xercesc/sax2/XMLReaderFactory.hpp>
#include <xercesc/sax2/DefaultHandler.hpp>
#include <xercesc/parsers/SAXParser.hpp>
#include <xercesc/sax/HandlerBase.hpp>
#include <xercesc/util/XMLString.hpp>

#include <iostream>
#include <iostream.h>


class Attributes;

class SaxParser : public DefaultHandler



Am I linking in things improperly? Is there something else I should check? I
have already looked at the Environment variable and the PATH is set

Here is an example of the type of errors I am getting:

XMLBinary error LNK2001: unresolved external symbol "public: virtual void
__thiscall xercesc_2_7::DefaultHandler::startElement(wchar_t const *
const,wchar_t const * const,wchar_t const * const,class
xercesc_2_7::Attributes const &)"

Any suggestions?
View this message in context: http://www.nabble.com/Linker-Error-with-Visual-Studio-2003-tf3137215.html#a8693905
Sent from the Xerces - C - Users mailing list archive at Nabble.com.

View raw message