See if this page helps:
http://forums.justlinux.com/showthread.php?126349-usr-bin-ld-cannot-find-lpthread

I'd try editing the Makefile to remove the "-static" option first.
Alternately, make sure you have libpthread.a installed.

On Tue, Apr 25, 2017 at 7:17 PM, Joe <[email protected]> wrote:

> I'm using the 5.0.0 code from the svn, build 7565. Compiling on centos
> linux I eventually receive this error:
>
> g++ -O3 -Wall -Wextra -static -Wno-char-subscripts -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -D__LINUX__ -IMSToolkit/include -ICometSearch
> Comet.o -LMSToolkit -LCometSearch -lcometsearch -lmstoolkitlite -lm
> -lpthread -o comet.exe
>
> /usr/bin/ld: cannot find -lpthread
>
> collect2: ld returned 1 exit status
>
>
>
> I do have libpthread.so installed. I tried manually editing the Makefile
> to include the path (-L/usr/lib64) but I still receive the error. Any
> ideas? Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "spctools-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/spctools-discuss.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"spctools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/spctools-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to