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
If you are running Windows, I recommend that you use Cygwin <http://www.cygwin.com>, who currently ship readline-8.1 <http://www.cygwin.com/packages/summary/libreadline-devel.html> for
x86 and x86_64, or, for a version that runs independently of Cygwin,
see the mingw64-{i686,x86_64}-readline packages.
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
<http://www.cygwin.com>, who currently ship readline-8.1
<http://www.cygwin.com/packages/summary/libreadline-devel.html> 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é,
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 166:16:43 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,528 |