blob: bde81242194070538ac502f222f509056fc75c22 [file] [log] [blame]
Alexandre Lision7c6f4a62013-09-05 13:27:01 -04001Notes on Using the Pre-compiled libsndfile DLL.
2===============================================
3
4In order to use this pre-compiled DLL with Visual Studio, you will need to
5generate a .LIB file from the DLL.
6
7This can be achieved as follows:
8
9 1) In a CMD window, change to the directory containing this file and
10 run the command:
11
12 lib /machine:i386 /def:libsndfile-1.def
13
14You now have two files:
15
16 libsndfile-1.dll
17 libsndfile-1.lib
18
19to be used with VisualStudio.
20
21If the lib command fails with a command saying "'lib' is not recognized as
22an internal or external command, operable program or batch file", you need
23to find the location of "lib.exe" and add that directory to your PATH
24environment variable. Another alternative is to use the "Visual Studio 2005
25Command Prompt" Start menu item:
26
27 Start ->
28 All Programs ->
29 Visual Studio 2005 ->
30 Visual Studio Tools ->
31 Visual Studio 2005 Command Prompt
32
33If for some reason these instructions don't work for you or you are still
34not able to use the libsndfile DLL with you project, please do not contact
35the main author of libsndfile. Instead, join the libsndfile-users mailing
36list :
37
38 http://www.mega-nerd.com/libsndfile/lists.html
39
40and ask a question there.