Path: ...!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!usenet.ovh!news.usenet.ovh!.POSTED!not-for-mail From: JKB Newsgroups: fr.comp.lang.c Subject: Re: [repost] Re: gcc/linux => mingw/windows/cygwin Date: Wed, 11 Dec 2024 11:34:56 -0000 (UTC) Organization: NUO - News.Usenet.Ovh Message-ID: References: Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 11 Dec 2024 11:34:56 -0000 (UTC) Injection-Info: news.usenet.ovh; posting-account="bejo"; logging-data="3421865"; mail-complaints-to="abuse@usenet.ovh" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha256:aYS/YD+Yak6k0KOlpiBqxaOA6z3gWNL+aXIfrU5FVFw= Bytes: 2458 Lines: 47 Le 10-12-2024, Olivier Miakinen 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_ » : > > > > > 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. > > > > Voir peut-être aussi : > > Je vais creuser. Bien cordialement, JKB -- Si votre demande me parvient en code 29, je vous titiouillerai volontiers une réponse.