On 4/12/2010 4:09 AM, Debasis Ray wrote:
Thanks Dave for confirming this. I could build a version of xalan using
gcc 4.1.1.
However when I tried building my app, it moans about some standard c++
library.
Undefined first referenced
symbol in file
std::ostrstream::ostrstream() ReleaseAll/XSLTransformer.o64
(symbol belongs to implicit dependency
/var/gnu/4.1.1/usr/local/bin/../lib/gcc/sparc-sun-solaris2.8/4.1.1/../..
/../sparcv9/libstdc++.so.6)
std::istrstream::~istrstream() ReleaseAll/XSLTransformer.o64
(symbol belongs to implicit dependency
/var/gnu/4.1.1/usr/local/bin/../lib/gcc/sparc-sun-solaris2.8/4.1.1/../..
/../sparcv9/libstdc++.so.6)
std::ostrstream::~ostrstream() ReleaseAll/XSLTransformer.o64
(symbol belongs to implicit dependency
/var/gnu/4.1.1/usr/local/bin/../lib/gcc/sparc-sun-solaris2.8/4.1.1/../..
/../sparcv9/libstdc++.so.6)
std::ostrstream::str() ReleaseAll/XSLTransformer.o64
(symbol belongs to implicit dependency
/var/gnu/4.1.1/usr/local/bin/../lib/gcc/sparc-sun-solaris2.8/4.1.1/../..
/../sparcv9/libstdc++.so.6)
std::istrstream::istrstream(char const*,
long)ReleaseAll/XSLTransformer.o64 (symbol belongs to implicit
dependency
/var/gnu/4.1.1/usr/local/bin/../lib/gcc/sparc-sun-solaris2.8/4.1.1/../..
/../sparcv9/libstdc++.so.6)
Would you have any clue?
Are you forcing a static build? I don't think you can do that with the
C++ standard library, but I'm not entirely sure. Also, please make sure
you're using g++ to link, and not gcc.
You might also try building a simple test program that uses ostrstream,
just to see if you can get that to link.
Dave