mredding wrote:
I am writing a conversion program for my company that turns a proprietary
format to xml with schemas. I'm looking to use xerces 2.7.0 and I'm working
on Fedora Core 2 because that's what 1,300 other machines corprate wide are
using as well. I installed xerces from source, grabbing
xerces-c-current.tar.gz on 9/12/06. I set the enviroment varaibles
$XERCESCROOT (note the C before ROOT), $LD_LIBRARY_PATH includes
$XERCESCROOT/lib, and $PATH includes $XERCESCROOT/bin. These enviroment
variables are perscribed by the install notes on xerces home page.
Here is my main file, simplified for testing xerces for the first time:
#include <QApplication>
#include "cmainapplication.h"
#include <xercesc/util/PlatformUtils.hpp>
XERCES_CPP_NAMESPACE_USE
int main(int argc, char *argv[])
{
// Initialize Xerces
try
{ XMLPlatformUtils::Initialize(); }
catch
{ return 1; }
QApplication app(argc, argv);
CMainApplication Converter;
Converter.show();
Converter.resize(800, 600);
int retVal = app.exec();
XMLPlatformUtils::Terminate();
return retVal;
}
The error I receive is "main.cpp:3:42: xercesc/util/PlatformUtils.hpp: No
such file or directory"
So I did everything I understand to be done, and I cannot figure out why I
cannot find the file. I checked, and it's there. Is there any modification
I need to make to my Makefile?
This is an issue with understand how your tools work, not with Xerces-C.
Most compilers have an option to specify a path for included files(-I is
typical), so you need to point your compiler to where Xerces-C's header
files are located. If you're using GCC, just adding the following option
to the gcc command should work:
-I $XERCESCROOT/include
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]