Anyone with experience linking FFTW for C++

  • C/C++
  • Thread starter cppIStough
  • Start date
  • Tags
    C++
In summary, the discussion revolves around the challenges and solutions related to linking the FFTW library in C++ projects. Users share their experiences, troubleshooting tips, and best practices to ensure successful integration of FFTW for performing fast Fourier transforms, emphasizing the importance of proper compiler flags, library paths, and header file inclusions.
  • #1
cppIStough
22
2
Title says it all, I'm trying to link FFTW and am getting a linker error. Anyone here have experience using this library?
 
Technology news on Phys.org
  • #2
cppIStough said:
Title says it all,
All except the command you are using and the error message you get.
 
  • Love
  • Like
Likes FactChecker and pbuk
  • #3
Vanadium 50 said:
All except the command you are using and the error message you get.
hahaha okay, fair enough, i just wanted to know if anyone had used it. Okay, so I'm using windows on visual studio. I configure the solution i'm currently trying to link with to include the path to the FFTW3.lib file: in order to do this I'm clicking properties > Linker > Input and then adding this directory in Additional Dependencies.
I also have this directory added to the VC++ Directories > Include Directories and Library Directories.

Then when I #include <fftw3.h> I receive the error:
Build started...
1>------ Build started: Project: signal.lib, Configuration: Release x64 ------
1>signal.lib.cpp
1>LINK : fatal error LNK1181: cannot open input file 'C:\external_libs\fftw-3.3.10\Release.obj'
1>Done building project "signal.lib.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build started at 4:57 PM and took 01.500 seconds ==========

But I am not sure why it is looking for a .obj file. Any help? Below is a snippet of the directory I'm pointing to, and no .obj file there
1716066128400.png
 
  • #4
I don't develop in Windows, but in unix, the command is different to link in foo.obj and foo.lib.
 

Similar threads

Back
Top