[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re:Re: native dll's
From:       Francois Gouget <fgouget () free ! fr>
Date:       2001-07-27 15:29:08
[Download RAW message or body]

On Fri, 27 Jul 2001, José Soriano Díaz wrote:
[...]
> > >         So my question is quite siple How can I link a native dll in
> > > a Unix project?
> >
> >    I think you have used the right approach: LoadLibrary /
> >GetProcAddress / FreeLibrary. If that works for you then it's the
> >simplest approach.
> 
> 	I'm afraid it doesn't work, when I executed what I compiled , I obtained 
> "Undefined Symbol" in any call to the native dll. Thanks anyway for the 
> advice.

   That's strange. It sounds like you are simply calling the functions
but I thought you were using GetProcAddress to get a function pointer
and then using that function pointer to call each function you imported
from the dll. You should not have any undefined symbol when doing that.
   It's not C++? (C++ makes things more intractable because each virtual
function table is a hidden import of a non function symbol.)
   Also you should be warned of any undefined symbol at link
time. Didn't you get such warnings? What did they say?

--
Francois Gouget         fgouget@free.fr        http://fgouget.free.fr/
           Demander si un ordinateur peut penser revient à demander
                          si un sous-marin peut nager.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic