Wednesday, March 4, 2009

[work] How to create libfftw3-3.lib?

Hi,

The instrauction is acually sayng that in order to use the library you have to produce a libfftw3-3.lib file. I think that in order to do so you need to do following:

1. Open command line, for instance type cmd in the Start->Run

2. in the command line you need to setup vs environment by runing a bat file:

C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat

3. Then make sure that you are in the directory where libfftw3-3.def is located (to go there use "cd" command)

4. execute command "lib /machine:i386 /def:libfftw3-3.def"

As result you will get a libfftw3-3.lib file

put this name in the "additional dependecies" field in the options of linker, and add path of the lib file in the "additional library directories" in the options of the linker.

Max

No comments: