[Linux-Biella] domanda compilazione

zane zanetto.vc a alice.it
Lun 7 Nov 2011 10:37:18 CET


Ho cercato di compilare un prg con gcc, il prg ha tale intestazione:

#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

indi utilizzo il comando gcc nome -o nome -lX11

ottengo pero':

/home/roberto/earthsin/EP4X.c: In function ‘main’:
/home/roberto/earthsin/EP4X.c:263: warning: passing argument 1 of 
‘XRefreshKeyboardMapping’ from incompatible pointer type
/usr/include/X11/Xlib.h:3074: note: expected ‘struct XMappingEvent *’ 
but argument is of type ‘union XEvent *’
/home/roberto/earthsin/EP4X.c:270: warning: passing argument 1 of 
‘XLookupString’ from incompatible pointer type
/usr/include/X11/Xutil.h:526: note: expected ‘struct XKeyEvent *’ but 
argument is of type ‘union XEvent *’
/tmp/cc3YMJIM.o: In function `main':
EP4X.c:(.text+0x7f): undefined reference to `eppsds'
collect2: ld returned 1 exit status

E' un problema di librerie installate o di path?

Grazie

Roberto



Maggiori informazioni sulla lista Linux