------------------------------------------------ spThread 0.1.0 - 2002.01.11 - softpixel http://prj.softpixel.com/spthread/ spThread is protected by a bsd-style license see http://prj.softpixel.com/licenses/#bsd ------------------------------------------------ spThread is a crossplatform library designed to provide a single API to developers who wish to use threads on win32 and unix platforms. it has been developed and tested on windows 2000 and a number of linux distributions. ------------------------------------------- Installation -- Unix ------------------------------------------- * place the source where you want it ( /usr/src or /usr/local/src is a good idea ) * 'make' * 'make install' that's all. This will create the file spthread.h in /usr/local/include, and the library spthread-0.1.0.a in /usr/local/lib. You may want to run 'ldconfig' after installation, and will probably need to be logged in as root. ------------------------------------------- Installation -- Windows ------------------------------------------- * go to the vc directory, open spthread.dsw in msvc. * click build. * Getting things where they belong * copy the .h into :\Program Files\Microsoft Visual Studio\VC98\Include * copy the .lib into :\Program Files\Microsoft Visual Studio\VC98\Lib ------------------------------------------- Making programs use spThread ------------------------------------------- Making programs is easy. Simply * #include for Unix or * #include "[installed-dir]\spthread.h" for msvc. * if you copied the .h into the VC98\Include dir, #include will work as well. and finally, link spThread into the executable * for unix: -lspthread for gcc * for mscv: * click project -> settings * click the link tab * add [installed-dir]\spthread.lib. if you copied it to VC98\Lib, just adding spthread.lib should be fine. See doc/API.txt for programming information.