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 "Agrawal, Vikas (ELS)" <V....@elsevier.co.uk> on 2003/09/23 10:50:07 UTC
undefined symbol error: std::char_traits::leng
th(unsigned short const*)
Hi All,
I am building an application named 'contrast'. This application uses one of
my library 'esxml4c' that has got the code
"int fullSrcCount = std::char_traits<XMLCh>::length(srcData);" in one of
it's cpp file. Now my application is giving linking error on Solaris. Thouhg
it builds successfully on Windows. Could anybody help me which library am I
missing to include to get rid of this undefined symbol error.
I am sorry I am asking simple C++ question out here but still would request
reply.
Thanks & Regards
Vikas Agrawal
/tool/gcc-3.2.1/bin/g++ -w -fpermissive
-I/tool/include/xml4c-src5_2_0/include -I/source/sp-1.3.4/include
-I/source/sp-1.3.4/generic
-I/export/disk01/vagrawal/contrast/elsevier/include/c_app -L. -L..
-L/export/disk01/vagrawal/contrast/elsevier/lib -L/tool/lib -O2 -o
contrast contrast.o -lcontrast -lchecks -lregex -ljpegxml -lepsxml
-ltiffxml -lchecks -lgenericapp -lesxml4c -lsptree -lEsCore -lEsCryptoLib
-lxpdfxml -lxpdf -lgoo -Bstatic -lxerces-c -L/source/sp-1.3.4-gcc321/lib
-lsp -L/tool/tiff/lib -ltiff -ljpeg -L/source/gcc-3.2.1/lib -static-libgcc
-Bdynamic -lsocket -lnsl
Undefined first referenced
symbol in file
std::char_traits<unsigned short>::length(unsigned short
const*)/export/disk01/vagrawal/contrast/elsevier/lib/libesxml4c.a(XmlTreeApp
lication.o)
ld: fatal: Symbol referencing errors. No output written to contrast
collect2: ld returned 1 exit status
make[1]: *** [contrast] Error 1
make[1]: Leaving directory
`/export/disk02/home/vagrawal/captools/contrast/contrast/src'
make: *** [contrast] Error 2
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org