Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime!chukran@austin.iinus.ibm.com!rudy From: rudy@chukran@austin.iinus.ibm.com Newsgroups: comp.unix.aix Subject: Re: building shared libraries Message-ID: <3865@awdprime.UUCP> Date: 15 Oct 90 16:39:46 GMT References: <1990Oct11.181900@ead.dsa.com> Sender: news@awdprime.UUCP Reply-To: rudy@chukran@austin.iinus.ibm.com () Organization: IBM Advanced Workstation Division Lines: 20 > Concerning my previous post: I have now succeeded in getting > the program to find the shared library at run-time. Unfortunately, > I now get the following error: > > Could not load program test_program > Could not load library libtest.0.1.a[shared_object.o] > Error was: Exec format error > It looks like the library was built correctly. I suspect that problem is in the test_program driver. It should be linked using cc (or xlf or whatever) like so: cc -o test_program a.o b.o ..... -ltest.0.1 and presuming the library lives in /lib or /usr/lib ********************************************************************* Rudy Chukran | EMAIL: IBM AIX Porting Center | RSCS: CHUKRAN at AUSTIN 11400 Burnet Rd. | AWDnet: rudy@chukran.austin.ibm.com Internal ZIP 2830 | internet: chukran@austin.iinus1.ibm.com Austin, Texas 78758 | Voice: 512-838-4674 Tieline: 678-4674 *********************************************************************