Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error message...

Status
Not open for further replies.

gio2888

Technical User
Oct 26, 2000
64
US
I am getting this message when I try to compile my server.c file.

>gcc server.c -lsocket -lnsl

Undefined first referenced symbol in file strcopy/var/tmp/cct7zs3k.o
ld: fatal: Symbol referencing errors. No output written to server
collect2: ld returned 1 exit status

Can anyone help me fix this bug?

Thanks in advance!
 
That doesn't look quite like the 'ld' unresolved error messages I'm used to seeing - can you clarify the exact message content?

Have you tried
gcc server.c -lnsl -lsocket

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top