[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mingw




Le 11/8/24 à 11:34, BERTRAND Joël a écrit :
	Bonjour à tous,

	En attendant de réussir à réutiliser ma VM Windows 10, j'ai besoin de
compiler un utilitaire (un truc que j'ai écrit moi-même en C) pour qu'il
puisse s'exécuter sous Windows.

	J'ai donc installé mingw. Problème, mon outil est lié avec readline et
la compilation échoue avec :

hilbert:[~/cvs/sonde_renard] > make w64
x86_64-w64-mingw32-gcc -I. -Icommon/header -c -O2 -g -Werror -Wextra
-Wall -Wno-stringop-truncation -o main.obj main.c
main.c:6:10: fatal error: readline/readline.h: Aucun fichier ou dossier
de ce nom
    6 | #include <readline/readline.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:41 : main.obj] Erreur 1


Je n'ai jamais utilisé Windows de ma vie, mais GNU readline (cf https://tiswww.cwru.edu/php/chet/readline/rltop.html ...) est documenté comme étant porté sous Windows et Cygwin

If you are running Windows, I recommend that you use Cygwin, who currently ship readline-8.1 for x86 and x86_64, or, for a version that runs independently of Cygwin, see the mingw64-{i686,x86_64}-readline packages.

Espérant avoir aidé,


Librement

-- 
Basile STARYNKEVITCH            <basile@starynkevitch.net>
8 rue de la Faïencerie          http://starynkevitch.net/Basile
92340 Bourg-la-Reine            https://github.com/bstarynk
France                          http://refpersys.org/

Reply to: