Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/asp.net-mvc-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 将FFTW图书馆建在;“释放模式”;_C++_Visual Studio 2013_Windows 8.1_Windows 7 X64_Fftw - Fatal编程技术网

C++ 将FFTW图书馆建在;“释放模式”;

C++ 将FFTW图书馆建在;“释放模式”;,c++,visual-studio-2013,windows-8.1,windows-7-x64,fftw,C++,Visual Studio 2013,Windows 8.1,Windows 7 X64,Fftw,我正在尝试使用windows 7/8.1操作系统(我的工作计算机的操作系统/和我的个人计算机的操作系统)在visual Studio 2013中使用库,并按照描述的说明使用visual Studio的lib.exe工具构建库。到目前为止,当我在调试模式下运行我的程序时,我一直在对库进行良好的实验,但当我尝试在发布模式下运行我的程序时,我调用的所有fftw函数都会出现LNK2001错误 1>runexample.obj : error LNK2001: unresolved external

我正在尝试使用windows 7/8.1操作系统(我的工作计算机的操作系统/和我的个人计算机的操作系统)在visual Studio 2013中使用库,并按照描述的说明使用visual Studio的lib.exe工具构建库。到目前为止,当我在调试模式下运行我的程序时,我一直在对库进行良好的实验,但当我尝试在发布模式下运行我的程序时,我调用的所有fftw函数都会出现LNK2001错误

1>runexample.obj : error LNK2001: unresolved external symbol __imp_fftwf_free
1>runexample.obj : error LNK2001: unresolved external symbol __imp_fftwf_execute
1>runexample.obj : error LNK2001: unresolved external symbol __imp_fftwf_cleanup
1>runexample.obj : error LNK2001: unresolved external symbol __imp_fftwf_plan_dft_2d
1>runexample.obj : error LNK2001: unresolved external symbol __imp_fftwf_alloc_complex
1>runexample.obj : error LNK2001: unresolved external symbol __imp_fftwf_destroy_plan
我在网上搜索了这个问题的解决方案,并咨询了FFTW,但没有找到任何答案。有没有办法为fftw构建或链接“发布”库,或者我做错了什么


谢谢

FFTW没有区分“发布”和“调试”导入库。FFTW附带了一组库,可用于“发布”和“调试”版本


“调试”和“发布”模式之间出现库链接问题的一个常见原因是,配置仅应用于“调试”模式,而不应用于“发布”模式。在“调试”模式下,编译器通常比较松散,错误可能会在“发布”模式下无法通过。

这些是导入库(由
\uu imp\uu
前缀指示)。没有“调试”导入库或“发布”导入库。导入库只包含DLL或其他可执行文件中存在的函数的存根。因此,问题可能是您没有将导入库添加到项目的
Release
模式中?谢谢,我没有在配置管理器中指定它们,我猜在调试中构建时发现它们还可以。但是,当我添加库时,当我想在发行版中构建时,它工作得很好