Comment compiler un prog en X11 sur cygwin?
Fermé
sophia
-
3 juin 2004 à 12:19
sebsauvage Messages postés 32893 Date d'inscription mercredi 29 août 2001 Statut Modérateur Dernière intervention 21 octobre 2019 - 3 juin 2004 à 13:52
sebsauvage Messages postés 32893 Date d'inscription mercredi 29 août 2001 Statut Modérateur Dernière intervention 21 octobre 2019 - 3 juin 2004 à 13:52
SVP,
j ai un programme en X11 et je veux le compiler sur cygwin
j ai les librairies mais apparament il y a un truc qui cloche
j ai deja fait gcc ...avec l option -L/usr/X11R6/lib -lx11 -lm
voila j espere avoir une reponse
j ai un programme en X11 et je veux le compiler sur cygwin
j ai les librairies mais apparament il y a un truc qui cloche
j ai deja fait gcc ...avec l option -L/usr/X11R6/lib -lx11 -lm
voila j espere avoir une reponse
A voir également:
- Comment compiler un prog en X11 sur cygwin?
- Robot prog - Télécharger - Édition & Programmation
- Comment compiler des pdf - Guide
- Inno setup compiler - Télécharger - Édition & Programmation
- Compiler plusieurs fichiers excel - Guide
- Telecharger cygwin - Télécharger - Édition & Programmation
3 réponses
sebsauvage
Messages postés
32893
Date d'inscription
mercredi 29 août 2001
Statut
Modérateur
Dernière intervention
21 octobre 2019
15 662
3 juin 2004 à 12:21
3 juin 2004 à 12:21
Tu as installé les librairies DEV X11 dans l'installeur cygwin ?
Il y a quoi comme message d'erreur quand tu compile ?
Il y a quoi comme message d'erreur quand tu compile ?
voila ce que je mets pour compiler :gcc -o afd af_dame.o -L/usr/X11R6/lib -LX11 -lm
et voila l erreur :
af_dame.o(.text+0xe):af_dame.c: undefined reference to `_XOpenDisplay'
af_dame.o(.text+0x80):af_dame.c: undefined reference to `_XCreateSimpleWindow'
af_dame.o(.text+0x9b):af_dame.c: undefined reference to `_XMapWindow'
af_dame.o(.text+0xd4):af_dame.c: undefined reference to `_XCreateGC'
af_dame.o(.text+0xff):af_dame.c: undefined reference to `_XParseColor'
af_dame.o(.text+0x125):af_dame.c: undefined reference to `_XParseColor'
af_dame.o(.text+0x14b):af_dame.c: undefined reference to `_XParseColor'
af_dame.o(.text+0x171):af_dame.c: undefined reference to `_XParseColor'
af_dame.o(.text+0x197):af_dame.c: undefined reference to `_XParseColor'
af_dame.o(.text+0x1b5):af_dame.c: undefined reference to `_XAllocColor'
af_dame.o(.text+0x1d3):af_dame.c: undefined reference to `_XAllocColor'
af_dame.o(.text+0x1f1):af_dame.c: undefined reference to `_XAllocColor'
af_dame.o(.text+0x20f):af_dame.c: undefined reference to `_XAllocColor'
af_dame.o(.text+0x22d):af_dame.c: undefined reference to `_XAllocColor'
af_dame.o(.text+0x458):af_dame.c: undefined reference to `_damier'
af_dame.o(.text+0x469):af_dame.c: undefined reference to `_damier'
af_dame.o(.text+0x4a7):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x4cc):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x531):af_dame.c: undefined reference to `_XFillArc'
af_dame.o(.text+0x555):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x57a):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x5df):af_dame.c: undefined reference to `_XFillArc'
af_dame.o(.text+0x5fe):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x66f):af_dame.c: undefined reference to `_XDrawString'
af_dame.o(.text+0x693):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x6f8):af_dame.c: undefined reference to `_XFillArc'
af_dame.o(.text+0x71c):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x781):af_dame.c: undefined reference to `_XFillArc'
af_dame.o(.text+0x7a0):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x811):af_dame.c: undefined reference to `_XDrawString'
af_dame.o(.text+0x842):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x863):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x8a2):af_dame.c: undefined reference to `_XFillRectangle'
af_dame.o(.text+0x920):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x941):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x980):af_dame.c: undefined reference to `_XFillRectangle'
af_dame.o(.text+0x9bb):af_dame.c: undefined reference to `_XFlush'
af_dame.o(.text+0x9f3):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0xa44):af_dame.c: undefined reference to `_XFillRectangle'
af_dame.o(.text+0xa63):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0xab9):af_dame.c: undefined reference to `_XFillRectangle'
af_dame.o(.text+0xad8):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0xb19):af_dame.c: undefined reference to `_XFillRectangle'
af_dame.o(.text+0xb5a):af_dame.c: undefined reference to `_XFillRectangle'
af_dame.o(.text+0xb79):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0xbc0):af_dame.c: undefined reference to `_XDrawString'
af_dame.o(.text+0xc07):af_dame.c: undefined reference to `_XDrawString'
af_dame.o(.text+0xc14):af_dame.c: undefined reference to `_XFlush'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libcygwin.a(libcmain.o)(.text+0x7
a): undefined reference to `_WinMain@16'
collect2: ld returned 1 exit status
//////////tout ca comme erreur il connait pas les fonctions approprie a X11
et voila l erreur :
af_dame.o(.text+0xe):af_dame.c: undefined reference to `_XOpenDisplay'
af_dame.o(.text+0x80):af_dame.c: undefined reference to `_XCreateSimpleWindow'
af_dame.o(.text+0x9b):af_dame.c: undefined reference to `_XMapWindow'
af_dame.o(.text+0xd4):af_dame.c: undefined reference to `_XCreateGC'
af_dame.o(.text+0xff):af_dame.c: undefined reference to `_XParseColor'
af_dame.o(.text+0x125):af_dame.c: undefined reference to `_XParseColor'
af_dame.o(.text+0x14b):af_dame.c: undefined reference to `_XParseColor'
af_dame.o(.text+0x171):af_dame.c: undefined reference to `_XParseColor'
af_dame.o(.text+0x197):af_dame.c: undefined reference to `_XParseColor'
af_dame.o(.text+0x1b5):af_dame.c: undefined reference to `_XAllocColor'
af_dame.o(.text+0x1d3):af_dame.c: undefined reference to `_XAllocColor'
af_dame.o(.text+0x1f1):af_dame.c: undefined reference to `_XAllocColor'
af_dame.o(.text+0x20f):af_dame.c: undefined reference to `_XAllocColor'
af_dame.o(.text+0x22d):af_dame.c: undefined reference to `_XAllocColor'
af_dame.o(.text+0x458):af_dame.c: undefined reference to `_damier'
af_dame.o(.text+0x469):af_dame.c: undefined reference to `_damier'
af_dame.o(.text+0x4a7):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x4cc):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x531):af_dame.c: undefined reference to `_XFillArc'
af_dame.o(.text+0x555):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x57a):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x5df):af_dame.c: undefined reference to `_XFillArc'
af_dame.o(.text+0x5fe):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x66f):af_dame.c: undefined reference to `_XDrawString'
af_dame.o(.text+0x693):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x6f8):af_dame.c: undefined reference to `_XFillArc'
af_dame.o(.text+0x71c):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x781):af_dame.c: undefined reference to `_XFillArc'
af_dame.o(.text+0x7a0):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x811):af_dame.c: undefined reference to `_XDrawString'
af_dame.o(.text+0x842):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x863):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x8a2):af_dame.c: undefined reference to `_XFillRectangle'
af_dame.o(.text+0x920):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x941):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0x980):af_dame.c: undefined reference to `_XFillRectangle'
af_dame.o(.text+0x9bb):af_dame.c: undefined reference to `_XFlush'
af_dame.o(.text+0x9f3):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0xa44):af_dame.c: undefined reference to `_XFillRectangle'
af_dame.o(.text+0xa63):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0xab9):af_dame.c: undefined reference to `_XFillRectangle'
af_dame.o(.text+0xad8):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0xb19):af_dame.c: undefined reference to `_XFillRectangle'
af_dame.o(.text+0xb5a):af_dame.c: undefined reference to `_XFillRectangle'
af_dame.o(.text+0xb79):af_dame.c: undefined reference to `_XSetForeground'
af_dame.o(.text+0xbc0):af_dame.c: undefined reference to `_XDrawString'
af_dame.o(.text+0xc07):af_dame.c: undefined reference to `_XDrawString'
af_dame.o(.text+0xc14):af_dame.c: undefined reference to `_XFlush'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libcygwin.a(libcmain.o)(.text+0x7
a): undefined reference to `_WinMain@16'
collect2: ld returned 1 exit status
//////////tout ca comme erreur il connait pas les fonctions approprie a X11
sebsauvage
Messages postés
32893
Date d'inscription
mercredi 29 août 2001
Statut
Modérateur
Dernière intervention
21 octobre 2019
15 662
3 juin 2004 à 13:52
3 juin 2004 à 13:52
Il manque peut-être quelques lib.
Vérifie que ton installation cygwin a bien les lib X11 installées.
(Je ne sais plus dans quel package ça se situe.)
Vérifie que ton installation cygwin a bien les lib X11 installées.
(Je ne sais plus dans quel package ça se situe.)