On 19 Feb 2010, at 19:03, Greg Ercolano wrote: > imacarthur wrote: >> Here's a simple example that shows what you might do: > > Neat example -- I just tried it. > > This example seems to assume the threads.h file that's in the > fltk/test/ directory is in the same directory as the example code. > (I couldn't find Fl_Thread defined anywhere else in 1.3.x). > > Also: to get the example to compile on linux, I found I had to add: > > #include "config.h" > > ..at the top, otherwise it said Fl_Thread was undefined, > apparently because HAVE_PTHREAD_H has to be pre-defined > for the body of threads.h to be enabled.
Yes - sorry about that: It was apparent from the OP's question that he was using "threads.h" from the test directory, so I tweaked an example I had to fit what I assumed he was doing... But you are right, it wouldn't compile without my hack Makefile to set the necessary little extras (I had a path to allow threads.h to be found, and I had HAVE_PTHREAD_H defined in the build... WHich you would need on any non-win32 host.) _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

