On 21.01.2011 12:04, MacArthur, Ian (SELEX GALILEO, UK) wrote: >> mingw-get install pthreads-w32 >> >> to make FLTK's threads demo working on my Win7 machine, although it >> worked on another (XP) without that. >> > > Huh! That should not be needed - the fltk threads demo should be using > win32 threads on Win7 surely? > > It certainly does for me on Vista and XP...
Oh, I found the culprit. configure finds libpthread and defines HAVE_PTHREAD, but then linking fails with "undefined reference to `_imp__pthread_create'". I #undef'd it, and then it works with win32 threads. :-) Side note: to get rid of (gcc 4.5.2) dll dependencies I also configured with "LDFLAGS=-static", and now I don't have any non-Windows dependencies again. This needs more investigation how to make this automatic for default user setups... W/o -static you get something like: $ cygcheck test/threads | grep -v Windows <path-to-fltk-1.3>\test\threads.exe C:\MinGW\bin\libgcc_s_dw2-1.dll C:\MinGW\bin\libstdc++-6.dll (cygcheck is a plain Windows Cygwin tool, i.e. it runs w/o the Cygwin dll and can be used under MinGW w/o problems). >> Subversion is not available, AFAICT, but I am using the Cygwin >> version, and you can use another Windows version for this. > > I'm a big fan of the SlikSVN port to windows. It's a free command line > port, and works well with either a DOS box or an Msys shell. > > http://www.sliksvn.com/en/download I still have to check this. Thanks for the link. I know you posted something before, when I asked, but I didn't try it yet. Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

