On Wed, Aug 3, 2011 at 12:31 PM, Steffen J. Smolka <steffen.smolka at in.tum.de> wrote: >>> gcc -c -Wall main.c This won't work for an object file to be included in a library on all platforms. You should add a '-fPIC' to that compile line.