On Mar 24, 2008, at 6:32 AM, Sheng-qi Jiang wrote: > 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. > > Undefined first referenced > symbol in file > std::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
Henry, I had this same problem when compiling OpenEXR with SS12 a while back. The trick to fix this is to explicitly link with libCstd and libCrun (LDFLAGS="-lCstd -lCrun") Here's a sample from my config.status: OpenEXR config.status 1.6.1 configured by ./configure, generated by GNU Autoconf 2.59, with options \"'--enable-large-stack' '--enable-threading' 'CC=cc' 'CFLAGS=-fast -xtarget=sse3' 'CXXFLAGS=-fast -xarch=sse3' 'CXX=CC' 'LDFLAGS=-lCstd -lCrun -lm -lc'\" /dale
