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.