Hello,
i have compiled the xerces sources ( version 2.8.0 ) with Borland C++
Builder 6 on Windows XP .
The Problem is now that I get an access violation error with this simple
code ( see below ) if I compile the code and i don't know why ?
#include <iostream>
#include <string>
using namespace std;
#include <xercesc/util/PlatformUtils.hpp>
// indicate using Xerces-C++ namespace in general
XERCES_CPP_NAMESPACE_USE
// need to properly scope any forward declarations
XERCES_CPP_NAMESPACE_BEGIN
class AttributeList;
XERCES_CPP_NAMESPACE_END
#pragma hdrstop
int start()
{
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;
}
//---------------------------------------------------------------------------
#pragma argsused
int main(int argc, char* argv[])
{
start();
return 0;
}
//---------------------------------------------------------------------------
Perhaps there is an compilation error with the sources, because i got over
100 warnings. Is this normal ?
Thanks David