> Hi Alan and John, > > I am not aware of this policy, but I did have a > problem to build the > binary with Sun Studio 11, It defined its own > iostream classes and > manipulators, I have tried different option to make > it but failed. Below > is sample output, thanks. > > /bin/bash ../libtool --tag=CXX --mode=link CC -g > -D_REENTRANT -o > libHalf.la -rpath /usr/local/lib -version-info 6:0:0 > -no-undefined > half.lo -lpthread > CC -G -zdefs -nolib -hlibHalf.so.6 -o > .libs/libHalf.so.6.0.0 > .libs/half.o -lpthread > > Undefined first referenced > symbol in file > td::ostream &std::ostream::operator<<(float) > .libs/half.o > int std::char_traits<char>::eof() .libs/half.o > std::istream &std::istream::operator>>(float&) > .libs/half.o > std::ostream &std::operator<<(std::ostream &,char) > .libs/half.o > ld: fatal: Symbol referencing errors. No output > written to > .libs/libHalf.so.6.0.0
You are missing -lCrun -lCstd on link line, and you have requested no undefined symbols. Also, $RPATH will be set to /usr/local/lib, which is not a valid RPATH in Solaris. Also, $(LDFLAGS) is missing from the link line. --Stefan --- Stefan Teleman Sun Microsystems, Inc. stefan.teleman at Sun.COM This message posted from opensolaris.org
