Hi Corey,
it looks like you are not finding up the global variables exported by
Xerces; could you post the command line used by the linker? (Project
properties -> Linker -> Command Line)
Thanks,
Alberto
Straub, Corey wrote:
Hi Alberto,
Well the way the program is setup there is a folder that holds all of
the xerces files so when I was try to move to 2.7 I removed all of the
old files and backed them up then put the new xerces files where the old
ones were. So my program is using the 2.7, I checked the paths and they
are looking there, and I doubled checked that they are the 2.7 files.
I did manage to fix one of my problems though, I changed
XMLPlatformUtils::Initialize(); changed to
XMLPlatformUtils::Initialize("en_US");
Now I don't get the below error
AgXercesXMLParser.obj : error LNK2001: unresolved external symbol
"public: static char const * const
xercesc_2_7::XMLUni::fgXercescDefaultLocale"
([EMAIL PROTECTED]@xercesc_2_7@@2QBDB)
And if I change
SAXParser parser; to SAXParser parser(0,0,0);
I am left with that one error still,
It seems to be a problem with XMLPlatformUtils::fgMemoryManager, I think
it has to do with the Class I have AgMemBufInputSource because it is
based off of InputSource which when is constructed needs a
XMLPlatformUtils::fgMemoryManager passed to it.
How would I construct one properly or what should I pass into the
constructor for the memory manager, I was looking through the samples
and could not find a good example.
Thanks for the help.
-Corey
-----Original Message-----
From: Alberto Massari [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 15, 2007 2:37 AM
To: [email protected]
Subject: Re: unresolved external symbol
Hi Corey,
have you checked if you changed the library path to include the 2.7
directory instead of the 2.1?
Alberto
Straub, Corey wrote:
Hi,
I am new to this so if this the wrong place to send this
sorry and could you let me know where I should send this.
I am trying to update xalan and xerces. I have no problems updating
xalan but when I try to update xerces I am having an issue.
I am going from xerces 2.1 to 2.7 and also I am using VC8.
I know there was no project made for VC8 but I updated the VC7.1
project to 8 and it compiled fine.
When I try to use the new library file in the program I keep getting
an unresolved external symbol error which suggest that something is
not linked right but I checked the library file against the function
and I find it
in the lib file and they are the exact same.
Here is the error I get:
AgMemBufInputSource.obj : error LNK2001: unresolved external symbol
"public: static class xercesc_2_7::MemoryManager *
xercesc_2_7::XMLPlatformUtils::fgMemoryManager"
([EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED]@A)
AgXercesXMLParser.obj : error LNK2001: unresolved external symbol
"public: static class xercesc_2_7::MemoryManager *
xercesc_2_7::XMLPlatformUtils::fgMemoryManager"
([EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED]@A)
AgXercesXMLParser.obj : error LNK2001: unresolved external symbol
"public: static char const * const
xercesc_2_7::XMLUni::fgXercescDefaultLocale"
([EMAIL PROTECTED]@xercesc_2_7@@2QBDB)
If I change 2 lines in my code as follows then I get 2 of the errors
to go away:
XMLPlatformUtils::Initialize(); changed to
//XMLPlatformUtils::Initialize();
SAXParser parser(0,0);
Then I am left with this error:
AgMemBufInputSource.obj : error LNK2001: unresolved external symbol
"public: static class xercesc_2_7::MemoryManager *
xercesc_2_7::XMLPlatformUtils::fgMemoryManager"
([EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED]@A)
If anyone has any ideas why I am getting this or how to fix it, help
would be appreciated and if not thank you for taking time to look at
this
-Corey
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]