• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

SOLVED Build static libraries w/gcc, can I use them/with IBM's xlc?

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

magellan

Member
Joined
Jul 20, 2002
I have a PowerPC 5+ box, 8 CPU's, 16 cores, 96 GiB of RAM running
Red Hat Enterprise Linux Server release 5.9 (Tikanga).

I'm trying to compile TCL w/gcc using the makefile created via
configure. TCL's makefile is designed to work w/gcc.

I'd like to use the TCL static libraries with NAMD, which I'm compiling
with IBM's xlc compiler because NAMD's makefiles for the PowerPC
platform on Linux all use IBM's xlc compiler.

So can I use the static libraries built via gcc with IBM's xlc compiler?
Or do libraries from different compilers have unique formats?
 
This worked. I was able to link to shared libraries built with gcc when compiling NAMD with IBM's xlc compiler. I had to set an environment variable LD_LIBRARY_PATH to point to the place the shared libraries were located.
 
Back