__errno() not defined..
807575Mar 23 2007 — edited Mar 23 2007Getting this error while building a C++ executable on Solaris 10 using SUN Studio 11.
Undefined
symbol int*___errno()
ld: fatal: Symbol referencing errors.
We are using the -mt flag as one of the compiler options and the module builds fine if -mt is not specified. I was expecting this to be defined in the thread safe library /usr/lib/libCstd.so.1 but it is not.
nm libCstd.so.1 |grep __errno
[3851] | 0| 0|FUNC |GLOB |0 |UNDEF |___errno
Any thoughts on what I am missing?