I want to use downloaded libfftw3-3.dll in my vc6 project.
I created libfftw3-3.lib file by:
lib /machine:i386 /def:libfftw3-3.def
and added libfftw3-3.lib to be linked to my project.
(
Or I hope, I have done so:
I added 'libfftw3-3.lib' to 'Object/library modules' in
Project->Settings->Link folder and Set the path of the library in
Tools->Options->directories..
Linker also asks for the 'libfftw3-3.lib' if I delete it. That's why I think
it uses this file for linking
)
But building still fails:
gargle.obj : error LNK2001: unresolved external symbol __imp__fftw_free@4
gargle.obj : error LNK2001: unresolved external symbol
__imp__fftw_destroy_plan@4
gargle.obj : error LNK2001: unresolved external symbol __imp__fftw_execute@4
gargle.obj : error LNK2001: unresolved external symbol
__imp__fftw_plan_dft_r2c_1d@16
gargle.obj : error LNK2001: unresolved external symbol __imp__fftw_malloc@4
This is ar some 'pieces' of 'dumpbin /exports libfftw3-3.lib':
File Type: LIBRARY
Exports
ordinal name
_fftw_destroy_plan
_fftw_execute
_fftw_free
_fftw_malloc
_fftw_plan_dft_r2c_1d
Summary
CF .debug$S
14 .idata$2
14 .idata$3
4 .idata$4
4 .idata$5
10 .idata$6
What am I doing wrong????
I'll be very thankfull for any help. I'm new to windows programming and I'm
really lost.
Honza
Marcus Heege - 03 May 2006 15:03 GMT
You are likely missing
extern "C"
in your function declarations.
Marcus
>I want to use downloaded libfftw3-3.dll in my vc6 project.
>
[quoted text clipped - 47 lines]
> really lost.
> Honza
tjmann - 07 Dec 2007 20:41 GMT
Go to the property page of the project -> Linker -> Input . In the "Additional Dependencies" space see that you have included all the libraries (in this case would be something like 'libfft3-3.lib libfft3f-3.lib libfft3l-3.lib"). Recompile, and it should work