game3d_example needs -lpthread to compile

35 views
Skip to first unread message

Devin Zuczek

unread,
Nov 29, 2012, 7:59:45 PM11/29/12
to libfre...@googlegroups.com
On fedora 15/gcc4.6.3, needed to change the Makefile in src/ to:

game3d_example_LDADD = -lm -lpthread

I think -lpthread is needed apparently, from this output:

/usr/bin/ld: game3d_example.o: undefined reference to symbol 'pthread_create@@GLIBC_2.1'
/usr/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line
/lib/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [game3d_example] Error 1

sorry if this is already fixed in dev, I don't really use bzr so wasn't able to check.

Merrill

unread,
Nov 30, 2012, 9:34:53 AM11/30/12
to libfre...@googlegroups.com
Great, thanks for the note.  I'll add a bug in launchpad for it and we'll try to get it fixed in a release soon.
Reply all
Reply to author
Forward
0 new messages