fftw在Visual Studio中? [英] fftw in Visual Studio?

查看:965
本文介绍了fftw在Visual Studio中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图链接我的项目与fftw,到目前为止,我已经得到了编译,但不是链接。正如网站所说,我生成所有的.lib文件(即使我只使用双精度),并将其复制到 C:\Program Files \Microsoft Visual Studio 9.0 \VC\\ \\ lib ,.h文件到 C:\Program Files\ Microsoft Visual Studio 9.0 \VC\include 和.dll到 C:\windows \system32

I'm trying to link my project with fftw and so far, I've gotten it to compile, but not link. As the site said, I generated all the .lib files (even though I'm only using double precision), and copied them to C:\Program Files\Microsoft Visual Studio 9.0\VC\lib, the .h file to C:\Program Files\Microsoft Visual Studio 9.0\VC\include and the .dll to C:\windows\system32.

我复制了教程程序,我得到的是:

I've copied the tutorial program, and the exact error I am getting is:

1>hw10.obj : error LNK2019: unresolved external symbol __imp__fftw_free referenced in function "bool __cdecl test(void)" (?test@@YA_NXZ)
1>hw10.obj : error LNK2019: unresolved external symbol __imp__fftw_destroy_plan referenced in function "bool __cdecl test(void)" (?test@@YA_NXZ)
1>hw10.obj : error LNK2019: unresolved external symbol __imp__fftw_execute referenced in function "bool __cdecl test(void)" (?test@@YA_NXZ)
1>hw10.obj : error LNK2019: unresolved external symbol __imp__fftw_plan_dft_1d referenced in function "bool __cdecl test(void)" (?test@@YA_NXZ)
1>hw10.obj : error LNK2019: unresolved external symbol __imp__fftw_malloc referenced in function "bool __cdecl test(void)" (?test@@YA_NXZ)

那么,我的项目设置可能有什么问题?感谢!

So, what could be wrong with my project setup? Thanks!

推荐答案

您是否正在建立的专案中连结到图书馆?

Have you actually linked against the library in the project you're building?

Project -> Properties -> Linker -> Input -> Additional dependencies

您需要将库的文件名添加到该字段。

You need to add the library's filename to that field.

这篇关于fftw在Visual Studio中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆