readthefuckingmanual.net

[SOLVED] ld: cannot find -lsocket

Error added: 2006-04-01T23:01:37Z

1 people waiting for the answer...

2 answers found.

Answer 1587 (100.0% helpful)

if you're trying to use pthreads just use -lpthread insead of -lsocket
Permalink

Answer 145 (0.0% helpful)

My guess is that you\'re compiling a C program written for one UNIX flavor on a different UNIX flavor.

Try `make clean` and run `./configure` again. If that doesn\'t work, edit the Makefile and remove \'-lsocket\' wherever you see it. If that doesn\'t work, you\'re probably screwed -- find a consultant.
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: