On 05/01/11 11:03, Tom Horsley wrote:
On Sun, 01 May 2011 13:58:53 -0400
Genes MailLists wrote:
> Sounds more like a shared library not static to me ...
Could be, in which case you need different options
and programs. For one thing you probably want to
compile the objects with -fpic (I don't right offhand
remember the options for linking a shared library
to generate the .so file).
Example:
g++ -shared -Wl,-soname,libMyLib.so.1 -o libMyLib.so.1 foo1.o
[foo2.o....fooN.o] -lc [ -lSOMEOTHERLIB -l...]