You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by thomas Armstrong <ta...@gmail.com> on 2004/11/14 16:38:22 UTC
/usr/local/lib/libxerces-c.so: undefined reference to `__ctype_b'
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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: /usr/local/lib/libxerces-c.so: undefined reference to `__ctype_b'
Posted by thomas Armstrong <ta...@gmail.com>.
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
<am...@progress.com> 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: xerces-c-dev-unsubscribe@xml.apache.org
> >For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: /usr/local/lib/libxerces-c.so: undefined reference to
`__ctype_b'
Posted by Alberto Massari <am...@progress.com>.
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: xerces-c-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org