From: Luke D. <cod...@ho...> - 2004-05-01 01:56:19
|
----- Original Message ----- From: "Kuba Ober" <ku...@ma...> To: <min...@li...> Sent: Saturday, May 01, 2004 12:48 AM Subject: Re: [Mingw-users] Newdevlib missing ?? > On Friday 30 April 2004 11:43 am, kir...@wi... wrote: > > I still wonder how? > > I did a nm on newdev.dll and it has no symbols. (all symbols are > > stripped) > > So how can the linker be able to fix the address ? > > That's not the way to check it. AFAIK nm is not designed to be used on dll's. > It works on object files (.o files). > > > Can you please give me the command line to link with the newdev dll > > file? > > Simply put the .dll itself as an argument in the final link stage > I.e. either > ld ...... path/newdev.dll > or > gcc/g++ ....... -o executable ....... path/newdev.dll > > Cheers, Kuba Ober The function is stdcall so this probably won't work because the linker will be looking for _UpdateDriverForPlugAndPlayDevices@20 while the DLL exports UpdateDriverForPlugAndPlayDevices. Luke |