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 Vinay Kakade <vi...@veritas.com> on 2002/01/15 15:20:30 UTC
"Undefined Symbol" error under Solaris
Hi
I am using Xerces-C++ parser (version 1.6.0) for solaris.
I have downloaded the binary package of Xerces parser
for Solaris.
I want to create an application using Xerces parser. For that I
do the following steps:
1. I link my program(.C) with libxerces-c1_6_0.so using -lxerces-c1_6_0,
to prepare object file (.o) of the program. This step works fine.
2. I then link this object file with libxerces-c1_6_0.so, to create an
executable. Here I get error that there are undefined symbols. e.g.,
Undefined Symbol First Referenced in file
c2N6FI_pv_ ../xerces-c1_6_0-SolForCC/lib/libxerces-c1_6_0.so
XMLFormatter::XMLFormatter(const char* const, XMLFormatTarget* const, const XMLFormatter::EscapeFlags, const XMLFormatter::UnRepFlags) ADTConfigFileParser.o
cG__CrunGex_get6F_pv_ ../xerces-c1_6_0-SolForCC/lib/libxerces-c1_6_0.so
cG__CrunHex_skip6F_b_ ../xerces-c1_6_0-SolForCC/lib/libxerces-c1_6_0.so
(For simplicity, I am giving here only 4/5 unreferenced symbols.
Actually, there are 15/20 of them).
I can't use "-z nodefs" compiler option as I want to prepare an execuatble,
not a shared object.
Please let me know what should I do to remove this error.
Awaiting your reply,
Thanks in Advance,
-Vinay.
(PS: I have successfully built the same application on windows using xerces C++ parser for
windows, using the same procedure and using VC++ compiler.)
Re: "Undefined Symbol" error under Solaris
Posted by Vinay Kakade <vi...@veritas.com>.
Hi Tinny,
Thanx a million!!!
Now I've started using SUNWspro 5.0 and the things are working fine!
Thanx again for your kind help and prompt reply
-Vinay
----- Original Message -----
From: Tinny Ng
To: xerces-c-dev@xml.apache.org
Sent: Tuesday, January 15, 2002 10:25 PM
Subject: Re: "Undefined Symbol" error under Solaris
What compiler did you use? The Xerces-1.6.0 binary for Solaris was built using Forte C++ 6.2. If your compiler is different, then you may get link error and you may need to rebuild the Xerces-1.6.0 library yourself using your compiler..
Tinny
Vinay Kakade wrote:
Hi I am using Xerces-C++ parser (version 1.6.0) for solaris.I have downloaded the binary package of Xerces parserfor Solaris. I want to create an application using Xerces parser. For that Ido the following steps: 1. I link my program(.C) with libxerces-c1_6_0.so using -lxerces-c1_6_0,to prepare object file (.o) of the program. This step works fine. 2. I then link this object file with libxerces-c1_6_0.so, to create anexecutable. Here I get error that there are undefined symbols. e.g., Undefined Symbol First Referenced in file c2N6FI_pv_ ../xerces-c1_6_0-SolForCC/lib/libxerces-c1_6_0.so
XMLFormatter::XMLFormatter(const char* const, XMLFormatTarget* const, const XMLFormatter::EscapeFlags, const XMLFormatter::UnRepFlags) ADTConfigFileParser.o
cG__CrunGex_get6F_pv_ ../xerces-c1_6_0-SolForCC/lib/libxerces-c1_6_0.so
cG__CrunHex_skip6F_b_ ../xerces-c1_6_0-SolForCC/lib/libxerces-c1_6_0.so (For simplicity, I am giving here only 4/5 unreferenced symbols.Actually, there are 15/20 of them). I can't use "-z nodefs" compiler option as I want to prepare an execuatble,not a shared object. Please let me know what should I do to remove this error.Awaiting your reply,Thanks in Advance,-Vinay. (PS: I have successfully built the same application on windows using xerces C++ parser forwindows, using the same procedure and using VC++ compiler.)
Re: "Undefined Symbol" error under Solaris
Posted by Tinny Ng <tn...@ca.ibm.com>.
What compiler did you use? The Xerces-1.6.0 binary for Solaris was
built using Forte C++ 6.2. If your compiler is different, then you may
get link error and you may need to rebuild the Xerces-1.6.0 library
yourself using your compiler..
Tinny
Vinay Kakade wrote:
> Hi I am using Xerces-C++ parser (version 1.6.0) for solaris.I have
> downloaded the binary package of Xerces parserfor Solaris. I want to
> create an application using Xerces parser. For that Ido the following
> steps: 1. I link my program(.C) with libxerces-c1_6_0.so using
> -lxerces-c1_6_0,to prepare object file (.o) of the program. This step
> works fine. 2. I then link this object file with libxerces-c1_6_0.so,
> to create anexecutable. Here I get error that there are undefined
> symbols. e.g., Undefined Symbol First Referenced in
> file c2N6FI_pv_
> ../xerces-c1_6_0-SolForCC/lib/libxerces-c1_6_0.so
> XMLFormatter::XMLFormatter(const char* const, XMLFormatTarget* const,
> const XMLFormatter::EscapeFlags, const XMLFormatter::UnRepFlags)
> ADTConfigFileParser.o
> cG__CrunGex_get6F_pv_
> ../xerces-c1_6_0-SolForCC/lib/libxerces-c1_6_0.so
> cG__CrunHex_skip6F_b_
> ../xerces-c1_6_0-SolForCC/lib/libxerces-c1_6_0.so (For simplicity, I
> am giving here only 4/5 unreferenced symbols.Actually, there are 15/20
> of them). I can't use "-z nodefs" compiler option as I want to prepare
> an execuatble,not a shared object. Please let me know what should I do
> to remove this error.Awaiting your reply,Thanks in
> Advance,-Vinay. (PS: I have successfully built the same application on
> windows using xerces C++ parser forwindows, using the same procedure
> and using VC++ compiler.)