Compiling and Building the SndObj Library with MS-Visual C++:
This library has been tested and compiled under MS-VC6.0 and
it seems to work OK (and much faster than Cygwin).
A few points must be followed:
1-Because MSVC and Windows do not have pthreads, there are
two things that can be done:
(a) add the definition 'NOPTHREAD' when compiling and
building the library (see the MSVC documentation as to
how to add definitions). This will prevent the system
trying to compile the SndThread class, which will result
in an error. You will not be able to use that class,
because it will not be in the library.
(b) if you have the winpthread lib, you can then add the
definition WINPTHREAD instead and use the SndThread class.
Note: a win95 msvc compiled pthreadVC.dll is supplied under the
/lib directory. You can move it to your system folder, if you
want to use it.
2-You will have to add the WIN definition, so that the compiler
reads the right bits of code necessary for the system to
3-When linking your programs you will have to tell the linker
where to find the SndObj.lib file (the library). Also don't
forget to add the Winmm.lib to the list of libraries you
will be using. If you are using SndThread, you will also have
to link to pthreadVC.lib.
4-A MSVC project file with the library and examples is supplied in
the MSVC6.0 directory. This has WINPTHREAD and WIN defined for you.