Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 07/12/2005, à 18:10

Dark Eagle

Librairie "crt" manquante pour compilation pascal ... et autres probs

Salut a tous ;)

J'ai un probleme tres enervant : lorsque je compile une fichier .pas (qui inclut la librairie crt pour afficher des couleurs) dans la console avec gpc, il me dit ceci :

decouverte02.pas:5: erreur: module/unit interface `crt' could not be imported

J'ai beau mettre 36 librairies en plus, rien n y fait toujours pareil ...

J'ai trouvé ce site pour des librairies pascal :

http://www.gnu-pascal.de/gpc/h-libraries.html

et la partie pour crt :

http://www.gnu-pascal.de/libs/

lorsque je veux installer ncurses-5.0-19991023, il me dit :

sudo ./configure
loading cache ./config.cache
Configuring NCURSES 5.0 ABI 5 (Wed Dec  7 17:06:53 CET 2005)
checking host system type... i686-pc-linux-gnu
Configuring for linux-gnu
checking for prefix... /usr
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking version of gcc... gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

checking for gcc... gcc
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking for POSIXized ISC... no
checking for gcc option to accept ANSI C... -DCC_HAS_PROTOS
checking for ldconfig... /sbin/ldconfig
checking if you want to ensure bool is consistent with C++... yes
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking whether the C++ compiler (gcc  ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.

et pour installer PDCurses-2.6  j ai ceci :

sudo ./configure
loading cache ./config.cache
checking for one of the following C compilers: gcc acc cc c89... using /usr/bin/gcc
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for POSIXized ISC... no
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for maximum signal specifier:... NSIG
checking for main in -ldld... no
checking for main in -ldl... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... yes
checking how to run the C preprocessor... gcc -E
checking for System V IPC support... checking for sys/ipc.h... yes
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for time.h... yes
checking for sys/time.h... yes
checking for memory.h... yes
checking for string.h... yes
checking for stdarg.h... yes
checking for sys/select.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for dl.h... no
checking for errno.h... yes
checking if compiler supports ANSI prototypes... yes
checking for working const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for main in -lsocket... no
checking for main in -lnls... no
checking whether gcc understand -c and -o together... yes
checking whether gcc needs -traditional... no
checking for 8-bit clean memcmp... yes
checking return type of signal handlers... void
checking for vprintf... yes
checking for select... yes
checking for memmove... yes
checking for vsscanf... yes
checking for usleep... yes
checking for poll... yes
checking for location of X headers... configure: error: Cannot find required Xaw header file Box.h; XCurses cannot be configured

donc des erreurs a chaque fois ...

j'en ai marre, je sais pas comment installer cette librairie sans devoir installer 36 choses differentes

Pourriez vous m'aider ???

GRAND merci a tous et a toutes d avance :)

Hors ligne

#2 Le 07/02/2008, à 12:58

Rizzen Virnn

Re : Librairie "crt" manquante pour compilation pascal ... et autres probs

Bonjour,
je ressort ce post parce que j'ai le meme probleme avec gpc

Du moins j'ai réussi à  aller une étape plus loin en installant le paquet build-essential. J'ai essayé avec plusieurs gars de mon cours mais on a pas réussi.
Donc j'ai téléchargé l'archive ncurses machin, j'ai fait un $ ./configure  (là  ou ça bloquait pour dark eagle) mais quand je fais le $ make, j'obtient ça en retour après un long chargement :

...
make[1]: *** [../objects/cursesf.o] Erreur 1
make[1]: quittant le répertoire « /home/martin/ncurses-5.0-19991023/c++ »
make: *** [all] Erreur 2

(il me vient une bete question à  l'esprit, est-ce que cela à  de l'importance o๠se trouve le dossier décompressé (moi dans mon dossier perso)


Ubuntu 12.04 32bit - Archlinux 64 bit
HP Pavilion dv6790eb
Blog

Hors ligne

#3 Le 17/02/2008, à 19:02

Rizzen Virnn

Re : Librairie "crt" manquante pour compilation pascal ... et autres probs

Personne ne sait ?
Je me suis renseigné à  gauche à  droite mais je n'ai pas pu trouver une solution qui fonctionne

J'ai entendu parler de fpc.

Dernière modification par Rizzen Virnn (Le 17/02/2008, à 19:21)


Ubuntu 12.04 32bit - Archlinux 64 bit
HP Pavilion dv6790eb
Blog

Hors ligne