Uso linux Ububtu, vorrei conoscere l'indirizzo IP di un host (anche del mio computer che usa un indirizzo dinamico). Ho provato ad usare la funzione getipnodebyname ma non mi compila il sorgente ecco l'errore:
Codice:
assignment makes pointer from integer without a cast
/tmp/ccOjuHC8.o: In function `main':
cftp.c:(.text+0x2a): undefined reference to `getipnodebyname'
collect2: ld returned 1 exit status
Sapete dirmi qualcosa?