I'm having problems linking an .a type static library archive using
Sun Workshop 5.0 under Solaris 2.6.
The archive was built with GCC (unfortunately I do not know which
version - is there a way to determine this from the archive?). If I
build an executable with CC using only the archive on its own then it
links fine, however if I include any other .c or .o files that
reference any of the functions contained within the archive then they
are not found and I receive symbol referencing errors.
My reason for using Sun Workshop is that I need also to link in some
C++ libraries compiled with WS5.0, and because of the name mangling
differences I can't use gcc to link them.
I am not able to recompile either of the libraries, so my simple
questions are: should this combination be possible? is there an
obscure link flag that I need to set? can someone suggest a
solution?!?!?!
Thanks in advance for your assistance,
Matt Hatcher.