IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Autres IDE Pascal Discussion :

Librairie "crt" manquante


Sujet :

Autres IDE Pascal

  1. #1
    Candidat au Club
    Inscrit en
    Décembre 2005
    Messages
    8
    Détails du profil
    Informations forums :
    Inscription : Décembre 2005
    Messages : 8
    Points : 2
    Points
    2
    Par défaut Librairie "crt" manquante
    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

  2. #2
    Responsable Pascal, Lazarus et Assembleur


    Avatar de Alcatîz
    Homme Profil pro
    Ressources humaines
    Inscrit en
    Mars 2003
    Messages
    7 937
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 57
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ressources humaines
    Secteur : Service public

    Informations forums :
    Inscription : Mars 2003
    Messages : 7 937
    Points : 59 416
    Points
    59 416
    Billets dans le blog
    2
    Par défaut
    Bonjour et bienvenue !

    GNU Pascal n'est pas le compilateur le plus rencontré parmi les membres du forum.

    J'ignore si cela peut t'aider mais sur cette page, il est fait mention du patch terminfo-linux.tar.gz qui accompagne ncurses 5.0.
    Règles du forum
    Cours et tutoriels Pascal, Delphi, Lazarus et Assembleur
    Avant de poser une question, consultez les FAQ Pascal, Delphi, Lazarus et Assembleur
    Mes tutoriels et sources Pascal

    Le problème en ce bas monde est que les imbéciles sont sûrs d'eux et fiers comme des coqs de basse cour, alors que les gens intelligents sont emplis de doute. [Bertrand Russell]
    La tolérance atteindra un tel niveau que les personnes intelligentes seront interdites de toute réflexion afin de ne pas offenser les imbéciles. [Fiodor Mikhaïlovitch Dostoïevski]

  3. #3
    Membre à l'essai
    Inscrit en
    Novembre 2005
    Messages
    17
    Détails du profil
    Informations forums :
    Inscription : Novembre 2005
    Messages : 17
    Points : 20
    Points
    20

  4. #4
    Candidat au Club
    Inscrit en
    Décembre 2005
    Messages
    8
    Détails du profil
    Informations forums :
    Inscription : Décembre 2005
    Messages : 8
    Points : 2
    Points
    2
    Par défaut
    merci bcp je lis ca ce week end,


    mais d'apres un leger survol sur le 1er lien, il semblerait qu apres avoir installé ncurse, il faille mettre "-DUSE_NCURSES" apres gpc dans la console lorsque on compile afin d'inclure la librairie crt ...

    Merci encore

  5. #5
    Membre expert
    Avatar de Eric Sigoillot
    Inscrit en
    Mars 2002
    Messages
    1 212
    Détails du profil
    Informations personnelles :
    Âge : 39

    Informations forums :
    Inscription : Mars 2002
    Messages : 1 212
    Points : 3 369
    Points
    3 369
    Par défaut
    Bonjour !

    Je m'arrêterais bien sur cette ligne :
    configure: error: installation or configuration problem: C++ compiler cannot create executables.
    Il semblerait que votre distribution de Linux ne dispose pas des librairies de développement de GCC. Il faut installer le package gcc-devel pour pouvoir compiler avec GCC (problème de Ubuntu par exemple qui n'installe pas GCC en entier par défaut...)

    ++
    Règles du forum
    F.A.Q Pascal

    Pour me joindre (aucune question technique, merci)

  6. #6
    Candidat au Club
    Inscrit en
    Décembre 2005
    Messages
    8
    Détails du profil
    Informations forums :
    Inscription : Décembre 2005
    Messages : 8
    Points : 2
    Points
    2
    Par défaut
    Effectivement je ne l'avais pas installé d'origine sur ubuntu, mais même en mettant les paquets gcc manquatn en universe sous linux, ca ne change rien ...

    je vais regarder enfin les liens (et non ce n'etait pas ecnore le cas )

  7. #7
    Candidat au Club
    Inscrit en
    Décembre 2005
    Messages
    8
    Détails du profil
    Informations forums :
    Inscription : Décembre 2005
    Messages : 8
    Points : 2
    Points
    2
    Par défaut
    En fait je viens de voir que je dois installer PDcurses 2.6.tar.gz


    Alors je le decompresse, tt va bien, une fois dans le dossier, je fais "./configure"
    la je vois plein de trucs qui s'affichent (et tt va bien) MAIS (et oui il y a un mais ), il me met ca a la fin :

    checking for location of X headers... configure: error: Cannot find required Xaw header file Box.h; XCurses cannot be configured
    Que dois je faire ???


    Merci

  8. #8
    Membre éclairé Avatar de Tuxico
    Profil pro
    Étudiant
    Inscrit en
    Août 2003
    Messages
    662
    Détails du profil
    Informations personnelles :
    Âge : 36
    Localisation : Belgique

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Août 2003
    Messages : 662
    Points : 770
    Points
    770
    Par défaut
    installerl la libxaw8?
    ★ Pascal/Java/C/xhtml,css/SQL/Mips
    ★ Linux/unix

  9. #9
    Candidat au Club
    Inscrit en
    Décembre 2005
    Messages
    8
    Détails du profil
    Informations forums :
    Inscription : Décembre 2005
    Messages : 8
    Points : 2
    Points
    2
    Par défaut
    je n arrive pas a le telecharger la : http://66.249.93.104/search?q=cache:5O78h0KSewkJ:packages.debian.org/unstable/libs/libxaw8+libxaw8&hl=fr

    http://packages.debian.org/cgi-bin/search_contents.pl?searchmode=filelist&word=libxaw8&version=unstable&arch=i386



Discussions similaires

  1. Réponses: 5
    Dernier message: 25/04/2004, 00h57

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo