|
From: <dan...@ya...> - 2000-12-20 02:37:55
|
--- Mattia Barbon <mb...@ds...> wrote: > > --- Mattia Barbon <mb...@ds...> wrote: > Hello, > > > I am writing a Perl module, and I need to get the dll > > > HMODULE, but my DllMain isn't called. I am using > > > This is the way I would do it: > > > > g++ -shared -o blib\arch\auto\Wx\Wx.dll > -Wl,--out-implib,libWx.dll.a \ > > -Wl,--image-base,0x3b140000 Wx.def Wx.o > > > > Note where Wx.def goes on the command line. > > DllMain is not called neither with your method nor with > --------------------------------------------------- > dllwrap --export-all --driver-name c++ -o blib\arch\auto\Wx\Wx.dll > Wx.o > --------------------------------------------------- > BTW I don't need the import library, since the dll is > loaded dinamically > Sorry, I misunderstood the problem. If using a def file, explicitly include DllMain@12 and/or DllMain=DllMain@12 to override the default exclusion of this name from the exports. Dlltool has a --no-default-excludes option but ld doesn't seem to recognise it Danny _____________________________________________________________________________ http://au.yahoo.com/shopping/giftguide/christmas/jumppage.html - Yahoo! Gift Guides - Looking for inspiration? |