Re: MinGW - dll and exe linking problems - can'tlinkstdcall function without decoration

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MinGW - dll and exe linking problems - can'tlinkstdcall function without decoration

Earnie Boyd

Quoting Danny Smith <[hidden email]>:

>>
>> FYI, linking directly to the DLL also works.  You don't need
>> an import
>> library.
>
> You do if the dll is exporting aliases.
>
> Quoting ld.info:
>
>     3. Symbol aliases can only be resolved using an import lib.  This
>     is critical when linking against OS-supplied dll's (eg, the win32
>     API) in which symbols are usually exported as undecorated aliases
>     of their stdcall-decorated assembly names.

Thanks for the correction Danny.

Earnie

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Loading...