Page 1 of 1

Could not read symbols: Invalid operation

Posted: Wed Sep 18, 2013 9:40 pm
by Davenge

Code: Select all

g++ -std=gnu++0x     -m32   -o dssearch dssearch-blowfish.o dssearch-malloc.o dssearch-md52.o dssearch-showmsg.o dssearch-sql.o dssearch-strlib.o dssearch-taskmgr.o dssearch-timer.o dssearch-utils.o dssearch-data_loader.o dssearch-auction_history.o dssearch-auction_list.o dssearch-linkshell_list.o dssearch-party_list.o dssearch-search_comment.o dssearch-search_list.o dssearch-search.o dssearch-tcp_request.o   -llua  -lmysqlclient -ldl  -lrt -lm 
/usr/bin/ld: dssearch-search.o: undefined reference to symbol 'pthread_create@@GLIBC_2.1'
/usr/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /lib/i386-linux-gnu/libpthread.so.0 so try adding it to the linker command line
/lib/i386-linux-gnu/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [dssearch] Error 1
Thoughts? 64-bit Ubuntu 13.04

Re: Could not read symbols: Invalid operation

Posted: Wed Sep 18, 2013 10:01 pm
by Davenge
Nevermind, google... had to put -lpthread in the Makefile AFTER config under LIBS= part