Strange Solaris non-problem

murray murray@geocom.com.au
Wed Apr 30 14:20:00 GMT 2003


I am building C++ programs using a free third party toolkit (no source
code) which includes several unique libraries, as well as their own(?)
libC, libCrun and libCstd. They only certify the use of their toolkit
with the Sun compiler, but I have found that since gcc 3.2 I can build
perfectly usable executables using gcc and a handful of alterations to
the makefiles.

I started using their latest version (running on a Blade 1000 Sparc with
Solaris 8), and encountered unresolved symbols which pointed at their
version of libCrun.so. As one of a number of experiments I explicitly
included /usr/lib/libCrun.so (instead of -lCrun) as the last entry in
the list of libraries in the makefile and voila! it builds and runs
correctly.

When I ldd the program it is using the vendors libCrun, not the systems
(in spite of the above).

I have no complaints about the program working, but I don't understand
what just happened. Could someone offer any comment? Have I left a
problem here which might bite me later?

I am using gcc 3.2.2 from SunFreeware, and it uses the as and ld in
/usr/ccs/bin.

regards
Graeme Murray



More information about the Gcc-help mailing list