Sujet : Re: [repost] Re: gcc/linux => mingw/windows/cygwin
De : JKB (at) *nospam* hilbert.invalid (JKB)
Groupes : fr.comp.lang.cDate : 11. Dec 2024, 12:34:56
Autres entêtes
Organisation : NUO - News.Usenet.Ovh
Message-ID : <slrnvliu70.gtu.JKB@hilbert.systella.fr>
References : 1 2
User-Agent : slrn/1.0.3 (Linux)
Le 10-12-2024, Olivier Miakinen <om+
news@miakinen.net> a écrit :
[au cas où il y aurait eu une perte de ma réponse sur ton serveur, je la remets]
Oui, merci, je n'avais pas vu la première réponse.
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>
>
Je vais creuser.
Bien cordialement,
JKB
-- Si votre demande me parvient en code 29, je vous titiouillerai volontiersune réponse.