Some problems and solutions in setting FFTW in vc++2010 under win8-64 bit system __c++

Source: Internet
Author: User

An error: LNK2019 external symbols not recognized

As mentioned above, in my case, there are "LNK2019 external symbols" such as the error, mainly because I referenced in the program Fftw3.h header file, but did not configure the corresponding FFTW library, the following is my online search methods to test the success of a method:

1, landing http://www.fftw.org/install/windows.html, download 32-bit version:fftw-3.3.4-dll32.zip (2.4MB).
2. Extract the Fftw-3.3.4-dll32.zip to a folder, such as D:\fftw

3, open the VS command prompt (C:\Program Files\Microsoft Visual Studio 10.0\vc\vcvarsall.bat), and then locate the file path to D:\FFTW.

4, enter the command:

Lib/def:libfftw3-3.def

Lib/def:libfftw3f-3.def

Lib/def:libfftw3l-3.def

As a result, the corresponding LIB file is generated in D:\FFTW:

Libfftw3-3.lib

Libfftw3f-3.lib

Libfftw3l-3.lib

5, in the VS2010,

Project-> Property->c/c++-> Additional include directory, plus D:\FFTW

Project-> Properties-> linker-> General-> Additional Library directory, plus D:\FFTW

Project-> Properties-> linker-> Enter-> additional dependencies, plus libfftw3-3.lib, Libfftw3f-3.lib, Libfftw3l-3.lib

6, the D:\FFTW in the Libfftw3-3.dll, Libfftw3f-3.dll, Libfftw3l-3.dll

Three DLL files are copied to my project folder (the folder with the. vcxproj file).

Two, error: Cannot find or open the PDB file

Found a way on the internet, once it was done:

1. In VS2010, the tool-> option-> debug-> symbol, select a Microsoft symbol server, select a cache path, and then confirm.

2, compile and run any small program (may be a bit slow).

3, in VS2010, the tool-> option-> Debug-> symbol, remove the Microsoft Symbol server, confirm.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.