Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    error: /X11/XLib.h: No such file or directory

    Qualcuno mi sa dire come mai gcc e di conseguenza kdevelop nn mi accettano l'include di xlib.h?

    ogni volta che compilo
    la librearia sul sistema non la trovo, dovrebbe far parte di xlibs-dev ma apt-get mi dice che probabilmente è un file diventato obsoleto :master:


    in compilazione

    codice:
    c.c: In function ‘main’:
    c.c:7: error: ‘Display’ undeclared (first use in this function)
    c.c:7: error: (Each undeclared identifier is reported only once
    c.c:7: error: for each function it appears in.)
    c.c:7: error: ‘d’ undeclared (first use in this function)
    c.c:9: error: ‘Window’ undeclared (first use in this function)
    c.c:9: error: expected ‘;’ before ‘w’
    c.c:10: error: ‘XEvent’ undeclared (first use in this function)
    c.c:10: error: expected ‘;’ before ‘e’
    c.c:21: error: ‘w’ undeclared (first use in this function)
    c.c:25: error: ‘ExposureMask’ undeclared (first use in this function)
    c.c:25: error: ‘KeyPressMask’ undeclared (first use in this function)
    c.c:32: error: ‘e’ undeclared (first use in this function)
    c.c:34: error: ‘Expose’ undeclared (first use in this function)
    c.c:39: error: ‘KeyPress’ undeclared (first use in this function)
    ace
    There are two kinds of researchers:
    those that have implemented something and those that have not.
    The latter will tell you that there are 142 ways of doing things
    and that there isn't consensus on which is best.
    The former will simply tell you that 141 of them don't work.

  2. #2
    libx11-dev


    andy:~# dpkg -S /usr/include/X11/Xlib.h
    libx11-dev: /usr/include/X11/Xlib.h

  3. #3
    Ho installato libx11-dev
    la libreria ora si trova in/usr/include/X11/Xlib.h
    ma il compilatore mi dice sempre

    error: /X11/xlib.h: No such file or directory


    puo essere che bisogna importare la nuova libreria su gcc ??
    There are two kinds of researchers:
    those that have implemented something and those that have not.
    The latter will tell you that there are 142 ways of doing things
    and that there isn't consensus on which is best.
    The former will simply tell you that 141 of them don't work.

  4. #4
    se il pacchetto che compili ha un proprio header guarda se devi compilare qualcosa all'interno del pacchetto

    /X11/xlib.h non è un percorso normale

    al limite prova per vedere a fare un link provvisorio

    ln -s /usr/include/X11/ /X11/

  5. #5
    Niente da fare neanche lincandola...
    Vabbe pazienza...

    Ma normalmente le librerie stanno tutte in usr/include/ ???

    pure le librerie standard come stdio.h ???

    Grazie mille per l' aiuto
    There are two kinds of researchers:
    those that have implemented something and those that have not.
    The latter will tell you that there are 142 ways of doing things
    and that there isn't consensus on which is best.
    The former will simply tell you that 141 of them don't work.

  6. #6
    /usr/include/stdio.h

    prova a installare i -dev di x11

    apt-cache search x11 | grep dev

    dai anche un ldconfig -v

    che sorgente è ?

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.