Issue 32 in crisscross: Undefined reference to 'pthread_join'

0 views
Skip to first unread message

codesite...@google.com

unread,
Nov 4, 2008, 9:12:04 AM11/4/08
to crisscr...@googlegroups.com
Issue 32: Undefined reference to 'pthread_join'
http://code.google.com/p/crisscross/issues/detail?id=32

New issue report by eddie.ringle:
Wanted to make use of CC's ThreadSleep function for Inceku
(ThreadSleep(500) is what I used), and the compiler returned this:
/home/eddie/Desktop/crisscross/source/system.cpp:135: undefined reference
to `pthread_join'

Might just be user error, but I'm submitting this just to be sure.


Issue attributes:
Status: New
Owner: ----

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Nov 4, 2008, 9:16:04 AM11/4/08
to crisscr...@googlegroups.com
Issue 32: Undefined reference to 'pthread_join'
http://code.google.com/p/crisscross/issues/detail?id=32

Comment #1 by eddie.ringle:
Why is WaitForThread called anyway? I can't find any code in ThreadSleep
that calls it.

codesite...@google.com

unread,
Nov 4, 2008, 10:58:33 AM11/4/08
to crisscr...@googlegroups.com
Issue 32: Undefined reference to 'pthread_join'
http://code.google.com/p/crisscross/issues/detail?id=32

Comment #2 by steven.noonan:
You need to add -lpthread to your link options to fix the linker error.

WaitForThread will pause execution of the main thread until an external
thread
finishes execution.


Issue attribute updates:
Status: Invalid

Reply all
Reply to author
Forward
0 new messages