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 bu...@apache.org on 2002/02/21 08:02:09 UTC

DO NOT REPLY [Bug 6605] New: - link error while complie the samples

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6605>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6605

link error while complie the samples

           Summary: link error while complie the samples
           Product: Xerces-C++
           Version: 1.6.0
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Build
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: shoujy@nj.zsd.com.cn


I use gcc 2.95.2 on solaris 8.
I have successfull build the lib of xerces.
When I complie the samples,g++ report some error

g++ -DSOLARIS -fpic  -L/usr/lib -L/usr/local/lib /usr/local/xerces-c-
src1_6_0/bin/obj/DOMPrint/DOMPr
int.o /usr/local/xerces-c-src1_6_0/bin/obj/DOMPrint/DOMTreeErrorReporter.o -
o /usr/local/xerces-c-sr
c1_6_0/bin/DOMPrint -L/usr/local/xerces-c-src1_6_0/lib -lxerces-c1_6_0 -lc -lm -
lnsl -lz -ldl -lstdc
++
Undefined                       first referenced
 symbol                             in file
cout                                /usr/local/xerces-c-
src1_6_0/bin/obj/DOMPrint/DOMPrint.o
ostream::write(char const *, int)   /usr/local/xerces-c-
src1_6_0/bin/obj/DOMPrint/DOMPrint.o
endl(ostream &)                     /usr/local/xerces-c-
src1_6_0/bin/obj/DOMPrint/DOMPrint.o
cerr                                /usr/local/xerces-c-
src1_6_0/bin/obj/DOMPrint/DOMPrint.o
ostream::operator<<(char const *)   /usr/local/xerces-c-
src1_6_0/bin/obj/DOMPrint/DOMPrint.o
ostream::operator<<(int)            /usr/local/xerces-c-
src1_6_0/bin/obj/DOMPrint/DOMPrint.o
ostream::operator<<(long)           /usr/local/xerces-c-
src1_6_0/bin/obj/DOMPrint/DOMPrint.o
ostream::operator<<(unsigned int)   /usr/local/xerces-c-
src1_6_0/bin/obj/DOMPrint/DOMTreeErrorReport
er.o
flush(ostream &)                    /usr/local/xerces-c-
src1_6_0/bin/obj/DOMPrint/DOMPrint.o
ld: fatal: Symbol referencing errors. No output written to /usr/local/xerces-c-
src1_6_0/bin/DOMPrint
collect2: ld returned 1 exit status
make: *** [/usr/local/xerces-c-src1_6_0/bin/DOMPrint] Error 1

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