This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
You do need to specify your options in order, same as you would require for static libraries on linux. It's the same gnu ld, which doesn't go back and repeat library searches after you add new references, unless you give the keywords which make that happen. You had no unsatisfied references at the point where you issued -lpthread, and there is no dynamic libpthread.
from the first few error log, it seems there is a problem recognizing pthread.h the Linux lib used are: #include<sys/socket.h> #include<arpa/inet.h> #include<netdb.h> #include<pthread.h> #include<sys/stat.h>
The make command was g++ -c -Wall main.cpp http_client.cpp string.cpp g++ -lpthread main.o http_client.o string.o -o main
-- Tim Prince
-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |