File: msvc.readme

package info (click to toggle)
sndobj 2.5.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,792 kB
  • ctags: 5,210
  • sloc: ansic: 55,029; cpp: 15,748; makefile: 177
file content (39 lines) | stat: -rwxr-xr-x 1,506 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
  work.

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.

Good Luck

Victor