Hi: I just started with xerces today, and I am having the same problem. Here
is a sample code:
#include <iostream>
using namespace std;
#include <xercesc/util/PlatformUtils.hpp>
int main()
{
cout << "Hello World!" << endl;
return 0;
}
I comppile with this ==>>: g++ ad.cc
I get this ==>> : xercesc/util/XercesDefs.hpp: No such file or directory
xercesc/util/XMLException.hpp: No such file or
directory
Can you please steer me in the right direction.
Thanks.
skyknight wrote:
>
>
>
> David Bertoni wrote:
>>
>>
>> Where did you build and install the Xerces-C library? You aren't
>> providing any -I arguments to g++ to locate header files, so I assumed
>> you installed it in a standard system location the compiler and linker
>> already search.
>>
>> Use the -L command line option to specify the path to the library:
>>
>> g++ -o testing.out testing2.cpp -L /I-installed-Xerces-here/lib -l
>> xerces-c
>>
>> Dave
>>
>>
>
> Thank you , Dave.
>
>
>
>
--
View this message in context:
http://old.nabble.com/Undefined-reference-when-compiles-xerces-example-tp24182941p26780219.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.