Dynamic Libraries

2012-03-07 Thread Doug Hardie
I have encountered something that I do not understand. Everything works fine. Basically I have a bunch of user modules (low level) that are built into a dynamic library. If I write top level code that calls modules in that library, everything works just fine on i386 and AMD64. However, the

Re: Dynamic Libraries

2012-03-07 Thread Volodymyr Kostyrko
Doug Hardie wrote: I have encountered something that I do not understand. Everything works fine. Basically I have a bunch of user modules (low level) that are built into a dynamic library. If I write top level code that calls modules in that library, everything works just fine on i386 and

Re: Dynamic Libraries

2012-03-07 Thread Doug Hardie
On 7 March 2012, at 01:40, Volodymyr Kostyrko wrote: Doug Hardie wrote: I have encountered something that I do not understand. Everything works fine. Basically I have a bunch of user modules (low level) that are built into a dynamic library. If I write top level code that calls modules

Re: Dynamic Libraries

2012-03-07 Thread Roland Smith
On Wed, Mar 07, 2012 at 12:53:13AM -0800, Doug Hardie wrote: All this works just fine on i386. However, when I compile everything on AMD64 I get an error message that says the lower level library needs to be compiled with fPIC. If I add that to the Makefile for the lower level library and