[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-c-dev
Subject:    Re: A question about xerces-C in Linux
From:       "Ozgur Sahoglu" <ozgur619 () gmail ! com>
Date:       2008-01-20 11:06:47
Message-ID: bcb6f6760801200306w67168a81vf448008268d7064f () mail ! gmail ! com
[Download RAW message or body]

Hi Shira,

Your program's include path does not contain the Xerces-C include directory.
If you did default installation on Linux, the include files should be
located under /usr/local/include. If you have built Xerces-c, but haven't
install the library, then the files are under $XERCESCROOT/include (it looks
that's what you're trying to use). You can pass the include path using
-I$XERCESCROOT/include option (dash_capital_i followed by the include path)
with gcc/g++. Don't forget to include also the Xerces-c lib folder using -L
option when you're building your program. Otherwise, it won't link to the
Xerces-c library.

Cheers,


-Ozgur Sahoglu



On Jan 20, 2008 2:22 AM, <shirab@t2.technion.ac.il> wrote:

> Hello,
>
> I'm a student for CS and download xerces-c-src_2_8_0.tar.gz for using a
> program
> in Linux operating system. Variable enviroments are updated in .login file
> :
>
> setenv XERCESCROOT /home/shirab/xerces-c-src_2_8_0
> setenv XERCESC_INCLUDES $XERCESCROOT/include
> setenv XERCESC_DEFINES
> setenv XERCESC_FLAGS
> setenv XERCESC_LIB_PATH $XERCESCROOT/lib
> setenv XERCESC_LIB_NAME $XERCESCROOT
> setenv XOGASTANROOT /home/shirab/XOGastan-api-src_0.99
> setenv XOGASTAN_INCLUDES $XOGASTANROOT/include
> setenv XOGASTAN_DEFINES
> setenv XOGASTAN_FLAGS -g
> setenv XOGASTAN_LIB_PATH $XOGASTANROOT/lib
> setenv PLATFORM LINUX
> setenv PREFIX_LIB /home/shirab/XOGastan-api/lib
> setenv PREFIX_INCLUDE /home/shirab/XOGastan-api/include
>
> However, I get error messages when building the software like:
> /home/shirab/XOGastan-api-src_0.99/include/XOGastan/Utils/a2b.hpp:31:38:
> xercesc/util/XMLString.hpp: No such file or directory
>
> Althogth the requsted file XMLString.hpp exists in directory:
> /home/shirab/xerces-c-src_2_8_0/src/xercesc/utilXMLString.hpp
>
> Do you know what is wrong and how is it possible to solve it ?
>
> thanks, Shira
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
> For additional commands, e-mail: c-dev-help@xerces.apache.org
>
>

[Attachment #3 (text/html)]

Hi Shira,<br><br>Your program&#39;s include path does not contain the Xerces-C \
include directory. If you did default installation on Linux, the include files should \
be located under /usr/local/include. If you have built Xerces-c, but haven&#39;t \
install the library, then the files are under $XERCESCROOT/include (it looks \
that&#39;s what you&#39;re trying to use). You can pass the include path using \
-I$XERCESCROOT/include option (dash_capital_i followed by the include path) with \
gcc/g++. Don&#39;t forget to include also the Xerces-c lib folder using -L option \
when you&#39;re building your program. Otherwise, it won&#39;t link to the Xerces-c \
library. <br><br>Cheers,<br><br><br>-Ozgur Sahoglu<br><br><br><br><div \
class="gmail_quote">On Jan 20, 2008 2:22 AM,  &lt;<a \
href="mailto:shirab@t2.technion.ac.il">shirab@t2.technion.ac.il</a>&gt; \
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hello,<br><br>I&#39;m a student \
for CS and download xerces-c-src_2_8_0.tar.gz for using a program<br>in Linux \
operating system. Variable enviroments are updated in .login file :<br><br>setenv \
XERCESCROOT /home/shirab/xerces-c-src_2_8_0 <br>setenv XERCESC_INCLUDES \
$XERCESCROOT/include<br>setenv XERCESC_DEFINES<br>setenv XERCESC_FLAGS<br>setenv \
XERCESC_LIB_PATH $XERCESCROOT/lib<br>setenv XERCESC_LIB_NAME $XERCESCROOT<br>setenv \
XOGASTANROOT /home/shirab/XOGastan-api-src_0.99 <br>setenv XOGASTAN_INCLUDES \
$XOGASTANROOT/include<br>setenv XOGASTAN_DEFINES<br>setenv XOGASTAN_FLAGS \
-g<br>setenv XOGASTAN_LIB_PATH $XOGASTANROOT/lib<br>setenv PLATFORM LINUX<br>setenv \
PREFIX_LIB /home/shirab/XOGastan-api/lib <br>setenv PREFIX_INCLUDE \
/home/shirab/XOGastan-api/include<br><br>However, I get error messages when building \
the software like:<br>/home/shirab/XOGastan-api-src_0.99/include/XOGastan/Utils/a2b.hpp:31:38:<br>xercesc/util/XMLString.hpp: \
No such file or directory <br><br>Althogth the requsted file XMLString.hpp exists in \
directory:<br>/home/shirab/xerces-c-src_2_8_0/src/xercesc/utilXMLString.hpp<br><br>Do \
you know what is wrong and how is it possible to solve it ?<br><br>thanks, Shira \
<br><br>---------------------------------------------------------------------<br>To \
unsubscribe, e-mail: <a \
href="mailto:c-dev-unsubscribe@xerces.apache.org">c-dev-unsubscribe@xerces.apache.org</a><br>For \
additional commands, e-mail:  <a \
href="mailto:c-dev-help@xerces.apache.org">c-dev-help@xerces.apache.org</a><br><br></blockquote></div><br>




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic