Ciao!!!
Ho scritto un programma un po in assebler e un po in c, quando pero a fare il link tra i vari file oggetto, il linker mi ritorna come errore tutte le chiamate che faccio alla liberie nelle funzioni c, giustamente mi segnala questo errore :
Io ho incluso le librerie : unistd , errno , termios!!!codice:getch.o: In function `getch_eco': getch.c: (.text+0x18): undefined reference to `tcgetattr' getch.c: (.text+0x2d): undefined reference to `perror' getch.c: (.text+0xb9): undefined reference to `tcsetattr' getch.c: (.text+0xce): undefined reference to `perror' getch.c: (.text+0xde): undefined reference to `getchar' getch.c: (.text+0xfc): undefined reference to `tcsetattr' getch.c: (.text+0x111): undefined reference to `perror' getch.o: In function `getch': getch.c: (.text+0x149): undefined reference to `tcgetattr' getch.c: (.text+0x15e): undefined reference to `perror' getch.c: (.text+0x1ea): undefined reference to `tcsetattr' getch.c: (.text+0x1ff): undefined reference to `perror' getch.c: (.text+0x20f): undefined reference to `getchar' getch.c: (.text+0x22d): undefined reference to `tcsetattr' getch.c: (.text+0x242): undefined reference to `perror'
Non sono riuscito a trovare il corrispondente file oggetto di queste librerie....
Mi sapete aiutare???
Ho provato anche ad linkare con : libglib.so, pero non funzionava lo stesso ( però il linker non dava errori), forse centra che questa è una libreria dinamica??

Rispondi quotando