Hi, I'm pretty new to C still. I'm trying to make a DS app but I think my question still belongs here (hopefully.) I needed to use the fftw3 libraries for my project.
I downloaded the libraries and headers, which were .dll, .def, .h, and .f files. I can include the header fine, but when I try to compile I get undefined references to fftw3's functions.
I tried putting the .def's and .dll's into (devkitinstall)/libnds/lib/ to no avail. I converted the .dll's into .lib files and then from .lib to .a but that didn't work either. I have edited the makefile to link to fftw3-3 and the linker isn't complaining (it said it couldn't find the file at first when I mistyped fftw3 but no longer that error.) I'm thinking I must be doing something wrong at a more basic level since all these conversions of the libs seems unusual to me, but I don't really have a lot of experience.
Linking with DLL's
Re: Linking with DLL's
Hmm...
I just posted a couple minutes ago but now I was just thinking, are libraries architecture-dependant and I have to build fftw3 with devkitARM? If I somehow just answered my own question, then I'd like to say in my defense that I did all this converting of the libs last night while I was a few beers deep
If this is correct pls let me know.
EDIT:
I tried building fftw3's libs myself using portlibs method. That seemed to work fine and the files are in portlibs, but I still get undefined reference errors to fftw3's errors.
I just posted a couple minutes ago but now I was just thinking, are libraries architecture-dependant and I have to build fftw3 with devkitARM? If I somehow just answered my own question, then I'd like to say in my defense that I did all this converting of the libs last night while I was a few beers deep
If this is correct pls let me know.
EDIT:
I tried building fftw3's libs myself using portlibs method. That seemed to work fine and the files are in portlibs, but I still get undefined reference errors to fftw3's errors.
Re: Linking with DLL's
OK, everything's good. I just had to compile the libs for ARM, then alter the makefile. This is all pretty new to me so my bad on posting a question then answering it myself right away. Anyway, thanks for the tools and hopefully I'll have something to show you guys in the coming weeks. Everything I do is a learning experience right now so *hopefully* something to show in the coming weeks that is.
Who is online
Users browsing this forum: No registered users and 3 guests