Subj : Re: passing an 'int' to a thread To : comp.programming.threads From : David Schwartz Date : Tue Jun 07 2005 01:17 pm "Huub" wrote in message news:42a5f183$0$148$3a628fcd@reader2.nntp.hccnet.nl... > With an example I took from the web I've tried to modify it so it passes > an int (0, 4 or -4) to a thread. However, I get undefined references. > /tmp/ccbRjnRM.o(.text+0x6d): In function `MotorDraad(void*)': > : undefined reference to > `ftapi::ftGetIfFromFactory(std::basic_string, > std::allocator >, ftapi::ft_if_conn)' > /tmp/ccbRjnRM.o(.text+0xc3): In function `MotorDraad(void*)': > : undefined reference to > `ftapi::FtMotorSpeed::FtMotorSpeed[in-charge](int)' [snip] > If I'm using the wrong way for passing an int to a thread, please tell me > or direct me to a link where I can find out how to do it. Your errors have nothing to do with passing an int to a thread, they have to do with calling functions that aren't linked in. Read the errors and see where the functions are supposed to be defined. DS .