skyknight wrote:

David Bertoni wrote:

g++ -o testing.out testing2.cpp -l xerces-c

Dave



Thank you for your reply, Dave.
But when I input the command, the screen display: /usr/bin/ld: cannot find -lxerces-c
collect2: ld returned l exit status

how can I solve this problem?
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

Reply via email to