This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Puzzled
- To: gcc-help at gcc dot gnu dot org
- Subject: Puzzled
- From: Joep deVocht <joep at masktools dot com>
- Date: Tue, 02 Oct 2001 18:27:57 -0700
- Organization: ASML MaskTools
Hi,
I just downloaded the Xerces c++ XML parser source files.
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++ ?!? When I check the Makefile I don't see anything weird
neither.
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.