Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/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
Visual studio 2010 fftw Visual Studio 2010编译的静态库LNK2001错误_Visual Studio 2010_Fftw - Fatal编程技术网

Visual studio 2010 fftw Visual Studio 2010编译的静态库LNK2001错误

Visual studio 2010 fftw Visual Studio 2010编译的静态库LNK2001错误,visual-studio-2010,fftw,Visual Studio 2010,Fftw,我成功地将64位版本的fftw 3.3.4库编译为静态库,源代码和Visual Studio解决方案来自“fftw-3.3-libs-Visual-Studio-2010.zip”。 现在,我尝试在使用fftw的项目中链接到静态库。 在构建/链接期间,我收到LNK2001错误 Fehler 30 error LNK2001: Nicht aufgelöstes externes Symbol "__imp_fftwf_malloc" Sry,我安装了德国Visual Studio。基本上,

我成功地将64位版本的fftw 3.3.4库编译为静态库,源代码和Visual Studio解决方案来自“fftw-3.3-libs-Visual-Studio-2010.zip”。 现在,我尝试在使用fftw的项目中链接到静态库。 在构建/链接期间,我收到LNK2001错误

Fehler  30  error LNK2001: Nicht aufgelöstes externes Symbol "__imp_fftwf_malloc"
Sry,我安装了德国Visual Studio。基本上,它说有一个未解析的符号名为“\uuuu imp\u fftwf\u malloc”。我调用的所有fftw函数都会出现这个错误,函数名前面总是有一个“\uuuu imp\uu”

我已针对库进行了链接,/verbose:lib向我显示已成功搜索库。 有人知道问题出在哪里吗

编辑1: 我在我创建并复制了所有提到fftw_malloc的条目的电子图书馆上做了一个垃圾桶,也许这能有所帮助

public symbol
A57BF4 fftwf_malloc
25B fftwf_malloc

Linker Directives
-----------------
/DEFAULTLIB:"libcpmtd"
/DEFAULTLIB:"LIBCMTD"
/DEFAULTLIB:"OLDNAMES"
/DEFAULTLIB:"VCOMPD"
/EXPORT:fftwf_malloc
/EXPORT:fftwf_free
/EXPORT:fftwf_alloc_real
/EXPORT:fftwf_alloc_complex

RELOCATIONS #2
                                            Symbol    Symbol
  Offset    Type              Applied To         Index     Name
 --------  ----------------  -----------------  --------  ------
 00000570  SECREL                     00000000         7  fftwf_malloc
 00000574  SECTION                        0000         7  fftwf_malloc
 000005C0  SECREL                     00000000         7  fftwf_malloc
 000005C4  SECTION                        0000         7  fftwf_malloc

RELOCATIONS #3
                                            Symbol    Symbol
 Offset    Type              Applied To         Index     Name
 --------  ----------------  -----------------  --------  ------
 00000024  REL32                      00000000         E  fftwf_kernel_malloc
 00000064  REL32                      00000000        1B  fftwf_kernel_free
 000000AB  REL32                      00000000         7  fftwf_malloc
 000000EB  REL32                      00000000         7  fftwf_malloc

COFF SYMBOL TABLE
000 00AA766F ABS    notype       Static       | @comp.id
001 00000000 SECT1  notype       Static       | .drectve
    Section length   B9, #relocs    0, #linenums    0, checksum        0
003 00000000 SECT2  notype       Static       | .debug$S
    Section length 1194, #relocs   10, #linenums    0, checksum        0
005 00000000 SECT3  notype       Static       | .text
    Section length   F5, #relocs    4, #linenums    0, checksum 50F0AACD
007 00000000 SECT3  notype ()    External     | fftwf_malloc
008 00000000 SECT4  notype       Static       | .pdata
    Section length   30, #relocs    C, #linenums    0, checksum BFE4C30B
00A 00000000 SECT4  notype       Static       | $pdata$fftwf_malloc
00B 00000000 SECT5  notype       Static       | .xdata

您确定链接的是单精度库(
fftwf
)而不是双精度库(
fftw
)?我尝试了所有组合,只有单精度库、双精度库和两个库。您确定链接的是单精度库(
fftwf
)而不是双精度库吗(
fftw
)?我尝试了所有组合,只有单精度、双精度和两个库。