[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] gethostid() problem



In mintlib the gethostid() function calls gethostbyname() which is in
libsocket.a.

This creates a problem when linking, so you have to do this...

gcc -o main main.c -lc -lsocket

to fix the link order.

I'm wondering if there's any need to have libsocket.a anymore and just
push that functionality into libc.a itself ?

Any suggestions ?

Alan.