Could not read symbols: Invalid operation

Post Reply
Davenge
Posts: 32
Joined: Tue Sep 17, 2013 5:29 pm

Could not read symbols: Invalid operation

Post by Davenge » Wed Sep 18, 2013 9:40 pm

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

Davenge
Posts: 32
Joined: Tue Sep 17, 2013 5:29 pm

Re: Could not read symbols: Invalid operation

Post by Davenge » Wed Sep 18, 2013 10:01 pm

Nevermind, google... had to put -lpthread in the Makefile AFTER config under LIBS= part

Post Reply