fftw library linking with MinGW

I'm a bit lost with trying to get FFTW3 to work with MinGW (using CodeBlocks as the IDE).

I downloaded it from here: http://www.fftw.org/install/windows.html
In the files downloaded, there are the dll files, but instead of the usual library files (.a or .lib), there is a libfftw3-3.def file. I don't know how to feed this to the linker... and googling stuff doesn't help me much or only points me to Visual Studio-specific things.

So basically: How to I get MinGW to correctly link when all I have are the .dll files and these .def files?

I know I'm probably not giving you much to work with, but not sure what else to say.
Thank you. I think I came across that webpage at first but didn't think it was relevant for whatever reason. I'll follow those instructions.

Edit: So I made the .a file, but I realize that the .def file doesn't have any external names for the functions I am using. It has "fftw_destroy_plan" but not "fftw_create_plan", for example.

If I only call the function fftw_destroy_plan, it compiles. But if I call fftw_create_plan, it doesn't recognize it. Why would they give a .def file that isn't complete?
Last edited on
I don't know what to tell you.
It's also possible to create a .def from a DLL directly, though I don't know if it's possible with MinGW.
It's actually okay now, I think! Thank you for the help.

I was being slightly idiotic, I was accidentally looking at an older version's tutorial... the interface between FFTW2 and FFTW3 is different so the function was obsolete. I should be more careful.

So yeah, using actual FFTW3 functions compiled just fine!
Last edited on
Topic archived. No new replies allowed.