Hi Emma,
Can you please configure your email client so it doesn't send HTML to the
mailing list? It's a real problem for many people.
You need to include the correct link libraries. That call is from Xerces,
not Xalan, so you need to make sure you have specified the Xerces link
library as input to the linker. Choose "Settings..." from the Project
menu, then click on the "Link" tab. There will be an edit field labelled
"Object/Library modules:", which is where you can enter any libraries you
are using. In this case you're missing "xerces-c_2.lib", which is the
Xerces library.
You should also make sure you're linking with the correct release and debug
libraries. For the Debug configuration make sure all of the libraries have
a "D" following the version number. For example, the library name for
debug is "xerces-c_2D.lib." The Xalan libraries follow the same
convention.
The easiest way to do this is to take a look at one of the Xalan sample
executables and copy the settings from there. You can also look in the
Microsoft help files for more information about linking programs and how to
specify link libraries.
Dave
"Willis, Emma"
<[EMAIL PROTECTED] To:
"'[email protected]'" <[email protected]>
com> cc: (bcc: David N
Bertoni/Cambridge/IBM)
Subject: link errors
11/21/2002 03:05
AM
OK... its driving me bonkers now. I have been through that page and put in
the following...
on my path environment variable...
C:\XalanC++\c\Build\Win32\VC6\Release;C:\XercesC++\bin;........ (I changed
the names of the directories).
in visual studio I have the include tab settings as, among other things...
C:\XercesC++\include
C:\XalanC++\c\src\INCLUDE
C:\XalanC++\c\src
and the library tab settings as...
C:\XercesC++\lib
then in the top of my main cpp file and the dialog file I have
#include "TransformTest.h"
#include "TransformTestDlg.h"
#include <Include/PlatformDefinitions.hpp>
#include <xercesc/util/PlatformUtils.hpp>
#include <XalanTransformer/XalanTransformer.hpp>
but as soon as it gets to the line of my program that says
XMLPlatformUtils::Initialize();
I get a link error -
TransformTestDlg.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static void __stdcall
XMLPlatformUtils::Initialize(void)"
([EMAIL PROTECTED]@@SGXXZ)
Debug/TransformTest.exe : fatal error LNK1120: 1 unresolved externals
Emma Willis
Programmer
Computer Associates
+44 (0)1753 241594
[EMAIL PROTECTED]