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 Joep deVocht <jo...@masktools.com> on 2001/10/03 03:24:37 UTC

Puzzled

Hi,

I just downloaded the Xerces c++ XML parser source file.
Downloading went fine and building the source files went ok too.
Now if I try to build the samples I get the following:

palladium 113> make
mkdir -p /N/mnemo/r7/joep/xerces-c-src1_5_1/bin/obj/SAXCount
g++ -c -DLINUX -D_REENTRANT -fpic -c -g  -I.
-I/N/mnemo/r7/joep/xerces-c-src1_5_1/include -o
/N/mnemo/r7/joep/xerces-c-src1_5_1/bin/obj/SAXCount/SAXCount.o
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp
g++ -c -DLINUX -D_REENTRANT -fpic -c -g  -I.
-I/N/mnemo/r7/joep/xerces-c-src1_5_1/include -o
/N/mnemo/r7/joep/xerces-c-src1_5_1/bin/obj/SAXCount/SAXCountHandlers.o
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp
g++ -DLINUX -fpic -L/usr/lib -L/usr/local/lib
/N/mnemo/r7/joep/xerces-c-src1_5_1/bin/obj/SAXCount/SAXCount.o
/N/mnemo/r7/joep/xerces-c-src1_5_1/bin/obj/SAXCount/SAXCountHandlers.o
-o /N/mnemo/r7/joep/xerces-c-src1_5_1/bin/SAXCount
-L/N/mnemo/r7/joep/xerces-c-src1_5_1/lib -lxerces-c1_5_1 -lc
/N/mnemo/r7/joep/xerces-c-src1_5_1/bin/obj/SAXCount/SAXCount.o: In
function `operator<<(ostream &, StrX const &)':
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.hpp(.text+0x1b):
undefined reference to `endl(ostream &)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.hpp(.text+0x30):
undefined reference to `cout'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.hpp(.text+0x38):
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.hpp(.text+0x43):
undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
/N/mnemo/r7/joep/xerces-c-src1_5_1/bin/obj/SAXCount/SAXCount.o: In
function `main':
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:184:
undefined reference to `endl(ostream &)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:184:
undefined reference to `cerr'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:184:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:184:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:184:
undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:201:
undefined reference to `endl(ostream &)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:201:
undefined reference to `cerr'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:201:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:201:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:201:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:201:
undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:277:
undefined reference to `endl(ostream
&)'                                    
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:277:
undefined reference to `cout'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:277:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:277:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:277:
undefined reference to `ostream::operator<<(unsigned long)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:277:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:277:
undefined reference to `ostream::operator<<(unsigned int)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:277:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:277:
undefined reference to `ostream::operator<<(unsigned int)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:277:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:277:
undefined reference to `ostream::operator<<(unsigned int)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:277:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:277:
undefined reference to `ostream::operator<<(unsigned int)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:277:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:277:
undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:146:
undefined reference to `endl(ostream &)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:146:
undefined reference to `cerr'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:146:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:146:
undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:257:
undefined reference to `endl(ostream &)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:257:
undefined reference to `cerr'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:257:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:257:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:257:
undefined reference to `ostream::operator<<(char const *)'  
      
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:257:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:257:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:257:
undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:264:
undefined reference to `cerr'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:264:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:264:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.cpp:264:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/bin/obj/SAXCount/SAXCount.o: In
function `operator<<(ostream &, StrX const &)':
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCount.hpp(.gnu.linkonce.t.__ls__FR7ostreamRC4StrX+0x32):
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/bin/obj/SAXCount/SAXCountHandlers.o:
In function `SAXCountHandlers::error(SAXParseException const &)':
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:143:
undefined reference to `endl(ostream &)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:143:
undefined reference to `cerr'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:143:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:143:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:143:
undefined reference to `ostream::operator<<(unsigned int)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:143:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:143:
undefined reference to `ostream::operator<<(unsigned int)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:143:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:143:
undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
/N/mnemo/r7/joep/xerces-c-src1_5_1/bin/obj/SAXCount/SAXCountHandlers.o:
In function `SAXCountHandlers::fatalError(SAXParseException const &)':
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:152:
undefined reference to `endl(ostream &)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:152:
undefined reference to `cerr'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:152:
undefined reference to `ostream::operator<<(char const *)'  
                        
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:152:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:152:
undefined reference to `ostream::operator<<(unsigned int)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:152:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:152:
undefined reference to `ostream::operator<<(unsigned int)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:152:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:152:
undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
/N/mnemo/r7/joep/xerces-c-src1_5_1/bin/obj/SAXCount/SAXCountHandlers.o:
In function `SAXCountHandlers::warning(SAXParseException const &)':
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:160:
undefined reference to `endl(ostream &)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:160:
undefined reference to `cerr'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:160:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:160:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:160:
undefined reference to `ostream::operator<<(unsigned int)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:160:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:160:
undefined reference to `ostream::operator<<(unsigned int)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:160:
undefined reference to `ostream::operator<<(char const *)'
/N/mnemo/r7/joep/xerces-c-src1_5_1/samples/SAXCount/SAXCountHandlers.cpp:160:
undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
collect2: ld returned 1 exit status
make: *** [/N/mnemo/r7/joep/xerces-c-src1_5_1/bin/SAXCount] Error 1   


I'm completely puzzled here. Undefined references to functions that are
in libstdc++ ?!?
I've never seen anything like this before. Even when I explicitely add
-lstdc++ these errors
keep being issued.
Does anyone understand what's going on here?

Thanx in advance,

Joep.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org