Hello,

Using:

g++ -I $XERCESROOT/include -L $XERCESROOT/lib -l xerces-c test.c

I am now able to compile test.c
Thanks for you help.  Sorry for wasting your time.

Crystal

On Tue, 2005-01-18 at 14:24 -0800, [EMAIL PROTECTED] wrote:
> > Hi Joanne,
> > 
> > As per your suggestion, I've used the compiling command, along with
> > changing test.c (to remove include).  I'm getting the compiler errors
> > below.  It looks like maybe a library issue...
> > 
> > /tmp/ccSN4FhO.o(.text+0x17): In function `main':
> > : undefined reference to `xercesc_2_6::XMLUni::fgXercescDefaultLocale'
> > /tmp/ccSN4FhO.o(.text+0x1c): In function `main':
> > : undefined reference to `xercesc_2_6::XMLPlatformUtils::Initialize(char
> > const*, char const*, xercesc_2_6::PanicHandler*,
> > xercesc_2_6::MemoryManager*)'
> > /tmp/ccSN4FhO.o(.text+0x58): In function `main':
> > : undefined reference to `xercesc_2_6::XMLPlatformUtils::Terminate()'
> > /tmp/ccSN4FhO.o(.gcc_except_table+0x10): undefined reference to
> > `typeinfo for xercesc_2_6::XMLException'
> > collect2: ld returned 1 exit status
> 
> Those are not compiler errors -- they are linker errors.  The linker does 
> not need the header files, it needs the shared library that contains the 
> definitions of these functions.  Try adding the following the compilation 
> command:
> 
> -L /usr/src/xerces-c-src_2_6_0/lib -l xerces-c
> 
> I'm not convinced you understand what the various tools (compiler, linker, 
> etc.) do, and what resources they need to accomplish what they do.  In the 
> future, rather than post what you think the problem is, it would better if 
> you posted the actual error message(s) you get.  Otherwise, we will all 
> spend lots of time guessing what the problem is.
> 
> Dave
> 
> ---------------------------------------------------------------------
> 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