I have a main program and an add-on module
that uses some functionality in the main program.
E.g., the main program main.c has function foo().
The add-on module in file addon.c calls foo().
I want to compile addon.c into libaddon.so (aka addon.dll) so that it
can later be loaded into a running main program if necessary.
When I try to do that, I get this error:
$ gcc -fPIC -Wl,-export-dynamic -shared -o addon.dll addon.o
addon.o:addon.c(.text+0x???): undefined reference to `_foo'
what am I doing wrong?
--
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.iris.org.il> <http://www.memri.org/>
<http://www.openvotingconsortium.org/> <http://ffii.org/>
Are you smart enough to use Lisp?