This is the mail archive of the
cygwin
mailing list for the Cygwin project.
1.5.22: Xercesc compile problems
- From: "Jan Rottberg" <jan dot rottberg at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 29 Sep 2006 13:06:18 +0200
- Subject: 1.5.22: Xercesc compile problems
Hi.
When I try to compile a very basic c++-program that uses xercesc there
are a lot of compiling errors. The errors are: "undefined reference to
'xercesc_2_5......'" I used the xercesc package from the dev-tree in
the basic cygwin-install.
Are there any hints to get solve this?
BTW: the actual xerces-release is 2.7.0.
For those of you, that want to try out by themself, here is the small
program from the xercesc-tutorial.
===start tutorial program===
#include <xercesc/util/PlatformUtils.hpp>
// Other include files, declarations, and non-Xerces-C++ initializations.
XERCES_CPP_NAMESPACE_USE
int main(int argc, char* argv[])
{
try {
XMLPlatformUtils::Initialize();
}
catch (const XMLException& toCatch) {
// Do your failure processing here
return 1;
}
// Do your actual work with Xerces-C++ here.
XMLPlatformUtils::Terminate();
// Other terminations and cleanup.
return 0;
}
===end tutorial program===
Thanks,
Jan
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/