From: Patrice D. <per...@fr...> - 2007-12-20 23:28:36
|
On Thu, Dec 20, 2007 at 01:48:35PM -0500, Arlindo da Silva wrote: > All, > > a) On Win32, we make this library dynamic (libgradsc.dll) and link > > gcc -o gradsc main.o libgradsc.dll > > This libgradsc.dll is then used to build the dynamic extensions as well. I am not very knowledgable in windows, but maybe libtool may help solving that issue more simply since there is this in libtool info manual: If symbols from your _executable_ are needed to satisfy unresolved references in a library you want to dlopen you will have to use the flag `-export-dynamic'. You should use `-export-dynamic' while linking the executable that calls dlopen: burger$ libtool --mode=link gcc -export-dynamic -o hell-dlopener main.o burger$ It looks like it could solve the issue you are having. Also you could use libltdl to abstract from the platform. And of course I'll try to do my best to help ;) -- Pat |