Re: gcc/linux => mingw/windows/cygwin

Liste des GroupesRevenir à fcl c  
Sujet : Re: gcc/linux => mingw/windows/cygwin
De : om+news (at) *nospam* miakinen.net (Olivier Miakinen)
Groupes : fr.comp.lang.c
Date : 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

Date Sujet#  Auteur
25 Nov 24 * gcc/linux => mingw/windows/cygwin4JKB
25 Nov 24 +- Re: gcc/linux => mingw/windows/cygwin1Olivier Miakinen
10 Dec 24 `* [repost] Re: gcc/linux => mingw/windows/cygwin2Olivier Miakinen
11 Dec 24  `- Re: [repost] Re: gcc/linux => mingw/windows/cygwin1JKB

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal