www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - FFTW on winxp

reply Dont like.spam.thanks writes:
Hi,

I am trying to test the speed of my code on a Intel pc with Winxp and compare
with  gcc. But I must use fftw for my code to run. I currently use a precompiled
version of fttw I pulled from the net which has been produced with the Intel
icc-7.1/O3/G7. This works fine with the gcc-compiled (mingw) code. Would it be
ok to try to do the same with the dmc?

I am asking this because on trying compiling and linking with dmc I get the
following - note that I have edited the sc.ini file and set the appropriate
paths:


C:\dm\bin>dmc main
link main,,,user32+kernel32/noi;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

main.obj(main)
Error 42: Symbol Undefined _fftw_execute
main.obj(main)
Error 42: Symbol Undefined _fftw_execute_dft_r2c
main.obj(main)
Error 42: Symbol Undefined _fftw_execute_dft_c2r
main.obj(main)
Error 42: Symbol Undefined _fftw_plan_many_r2r
main.obj(main)
Error 42: Symbol Undefined _fftw_plan_dft_c2r_2d
main.obj(main)
Error 42: Symbol Undefined _fftw_plan_dft_r2c_2d
main.obj(main)
Error 42: Symbol Undefined _fftw_malloc

--- errorlevel 7


What I am doing wrong?
Thanks.
--
Feb 25 2006
parent reply Bertel Brander <bertel post4.tele.dk> writes:
Dont like.spam.thanks wrote:

 C:\dm\bin>dmc main
 
 
 What I am doing wrong?
You can create a .lib file from the .dll and link to that. To create the .lib: implib /S ffw.lib libfftw3-3.dll And then use the lib when you compile: dmc main ffw.lib -- Absolutely not the best homepage on the net: http://home20.inet.tele.dk/midgaard But it's mine - Bertel
Feb 25 2006
next sibling parent Me Again <Me_member pathlink.com> writes:
In article <dtqpk5$2ljg$1 digitaldaemon.com>, Bertel Brander says...

Many thanks for the prompt response. I actually were using a .lib
library that I had downloaded together with the .dll.

I was specifying in the sc.in 
LIB="% P%\..\lib";"% P%\..\mfc\lib";%LIB%;C:\FFTW;C:\dm\bin\fftw3.lib

Anyway. I will try to recreate the .lib file. I will have to download 
implib from somewhere ...
--




Dont like.spam.thanks wrote:

 C:\dm\bin>dmc main
 
 
 What I am doing wrong?
You can create a .lib file from the .dll and link to that. To create the .lib: implib /S ffw.lib libfftw3-3.dll And then use the lib when you compile: dmc main ffw.lib -- Absolutely not the best homepage on the net: http://home20.inet.tele.dk/midgaard But it's mine - Bertel
Feb 26 2006
prev sibling parent reply Me Yet Again <Me_member pathlink.com> writes:
In article <dtqpk5$2ljg$1 digitaldaemon.com>, Bertel Brander says...

Downloaded impbin but it asks for DUMPBIN. Download MS Visual C++
installed but DUMPBIN nowhere to be seen (free version). Any ideas?
--

Dont like.spam.thanks wrote:

 C:\dm\bin>dmc main
 
 
 What I am doing wrong?
You can create a .lib file from the .dll and link to that. To create the .lib: implib /S ffw.lib libfftw3-3.dll And then use the lib when you compile: dmc main ffw.lib -- Absolutely not the best homepage on the net: http://home20.inet.tele.dk/midgaard But it's mine - Bertel
Feb 26 2006
parent Bertel Brander <bertel post4.tele.dk> writes:
Me Yet Again wrote:
 In article <dtqpk5$2ljg$1 digitaldaemon.com>, Bertel Brander says...
 
 Downloaded impbin but it asks for DUMPBIN. Download MS Visual C++
 installed but DUMPBIN nowhere to be seen (free version). Any ideas?
In the version of ffw I downloaded there were no .lib's only .dll and the header. You have to use implib.exe to create the .lib It is a part of the standard package. In sc.ini you specify the path's to libraries, not the libraries themselves, as far as I know. So you must specify the .lib on the command line when compiling: dmc main ffw.lib -- Absolutely not the best homepage on the net: http://home20.inet.tele.dk/midgaard But it's mine - Bertel
Feb 26 2006