Re: [Dev-C++] Problems with linking FFTW library
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Teboho N. <TNy...@cs...> - 2004-10-21 14:28:50
|
Hi,
I have included the example code from FFTW 3.01 tuturial. I just
replaced fft_plan_dft_1d( ) and fftw_excute( ) with fftw_create_plan and
fftw_one when using the binaries from FFTW 2.1.5. I also replace the
header file fftw3.h with the ones shown below. When using FFTW 3.01
binaries I add the fftw3.lib file via the menu project-> object file or
linker options in the Dev-C++. When using the FFTW 2.1.5 binaries, I add
the libfftw.* files to the lib folder. It still doesn't work with this
changes.
#include <stdlib.h>
#include <fftw.h>
#include <rfftw.h>
int main()
{
int N = 256;
fftw_complex *in, *out;
fftw_plan p;
in = (fftw_complex*)fftw_malloc(sizeof(fftw_complex) * N);
out = (fftw_complex*)fftw_malloc(sizeof(fftw_complex) * N);
p = fftw_create_plan(N,FFTW_FORWARD,FFTW_ESTIMATE);
fftw_one(p,in,out);
//p = fftw_plan_dft_1d(N, in, out, FFTW_FORWARD,FFTW_ESTIMATE);
//fftw_execute(p); /* repeat as needed */
fftw_destroy_plan(p);
fftw_free(in);
fftw_free(out);
system("PAUSE");
return 0;
}
thanks again
Teboho
>>> Cary Haynie <xen...@gm...> 21/10/2004 15:11:55 >>>
Those errors look would suggest that your missing a header file or
something.
I dont know what headers that fftw uses, but thats where I would
start. Also make sure that that there is a 'using namespace <name>;'
statement, if one is required.
On Thu, 21 Oct 2004 11:31:13 +0200, Teboho Nyareli
<tny...@cs...> wrote:
> Hi Siva,
> I am still getting the same errors even with fftw-2.1.5. version.
>
> c:\dev-c++\examples\fft\fft.o(.text+0x29):fft.cpp: undefined
reference
> to `fftw_malloc'
> c:\dev-c++\examples\fft\fft.o(.text+0x42):fft.cpp: undefined
reference
> to `fftw_malloc'
> c:\dev-c++\examples\fft\fft.o(.text+0x58):fft.cpp: undefined
reference
> to `fftw_create_plan'
> c:\dev-c++\examples\fft\fft.o(.text+0x74):fft.cpp: undefined
reference
> to `fftw_one'
> c:\dev-c++\examples\fft\fft.o(.text+0x83):fft.cpp: undefined
reference
> to `fftw_destroy_plan'
> c:\dev-c++\examples\fft\fft.o(.text+0x92):fft.cpp: undefined
reference
> to `fftw_free'
> c:\dev-c++\examples\fft\fft.o(.text+0xa1):fft.cpp: undefined
reference
> to `fftw_free'
>
>
> thanks in advance
> Teboho
>
> >>> Siva Chandra <siv...@ya...> 20/10/2004 09:54:19 >>>
>
>
>
> Hello,
>
> There is a Dev-Pak now available for fftw at
> http://www.devpaks.org/ (it is listed under the
> mathematics section there).
>
> You may try using it. But It is for an older version
> fftw-2.1.5.
>
> HTH,
> Siva Chandra
>
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on
> ITManagersJournal
> Use IT products in your business? Tell us what you think of them.
Give
> us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find
out
> more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> MailScanner thanks transtec Computers for their support.
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on
ITManagersJournal
> Use IT products in your business? Tell us what you think of them.
Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find
out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on
ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give
us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.
|