Sujet : Re: gcc/linux => mingw/windows/cygwin
De : om+news (at) *nospam* miakinen.net (Olivier Miakinen)
Groupes : fr.comp.lang.cDate : 25. Nov 2024, 23:12:47
Autres entêtes
Organisation : There's no cabale
Message-ID : <vi2sp0$2d2$1@cabale.usenet-fr.net>
References : 1
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4
Bonjour,
Le 25/11/2024 15:37, JKB a écrit :
[...]
U __imp_CyUartClearDtr
U __imp_CyUartClearRts
U __imp_CyUartSetDtr
U __imp_CyUartSetHwFlowControl
U __imp_CyUartSetRts
Ça semble en effet être une microsofterie, apparemment liée à l'utilisation
de bibliothèques de liens dynamiques (DLL).
Par exemple je trouve ceci en faisant une recherche sur « prefix __imp_ » :
<
https://stackoverflow.com/questions/5159353/how-can-i-get-rid-of-the-imp-prefix-in-the-linker-in-vc>
<cit.>
The __imp__ prefix appears whenever you are linking to a DLL. It does not appear
when linking to statically linked libraries. Most likely the code is generated
to be linked against a DLL import lib, but you have linked it with a static lib
instead.
The prefix is added when you mark the imported function with
__declspec(dllimport) - make sure your imports are not using this when not
linking against a DLL.
</cit.>
Voir peut-être aussi :
<
https://mingw-users.narkive.com/gITSyJLh/some-questions-on-imp-prefix-and-other-linking-problems>
-- Olivier Miakinen