Hi Alberto,

Thank you very much for your answer.

I'm still getting the error message:
------------------//------------------
gcc -Wall -o hello hello.o -L/usr/lib -L/usr/local/lib -lxerces-c -lc
/usr/local/lib/libxerces-c.so: undefined reference to `__ctype_b'
--------------------//---------------

:(


On Sun, 14 Nov 2004 19:22:21 +0100, Alberto Massari
<[EMAIL PROTECTED]> wrote:
> Hi Thomas,
> I am not running Linux, but I guess you need the -lc command line option.
> 
> Alberto
> 
> 
> 
> At 16.38 14/11/2004 +0100, thomas Armstrong wrote:
> >Hi.
> >
> >I'm trying to compile this piece of code:
> >---------------------//--------------------------
> >#include <xercesc/util/PlatformUtils.hpp>
> >#include <xercesc/dom/DOM.hpp>
> >#include <xercesc/dom/DOMImplementation.hpp>
> >#include <xercesc/dom/DOMImplementationLS.hpp>
> >#include <xercesc/dom/DOMWriter.hpp>
> >#include <xercesc/framework/StdOutFormatTarget.hpp>
> >#include <xercesc/framework/LocalFileFormatTarget.hpp>
> >#include <xercesc/parsers/XercesDOMParser.hpp>
> >#include <xercesc/util/XMLUni.hpp>
> >#include <stdio.h>
> >
> >XERCES_CPP_NAMESPACE_USE
> >
> >int main()
> >{
> >         XercesDOMParser *parser = new XercesDOMParser;
> >         printf ("Hello world!\n");
> >         return 0;
> >}
> >------------------------------//----------------------------------------
> >
> >But I get this error message:
> >--------------------------//-------------------------------
> >gcc -Wall -o hello hello.o -L/usr/local/lib -lxerces-c
> >/usr/local/lib/libxerces-c.so: undefined reference to `__ctype_b'
> >collect2: ld returned 1 exit status
> >make: *** [all] Error 1
> >-----------------------//-----------------------------------
> >
> >Any suggestion?
> >
> >Thank you very much, Alberto, for your previous answer.
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to