Anyone with experience linking FFTW for C++

  • Context: C/C++ 
  • Thread starter Thread starter cppIStough
  • Start date Start date
  • Tags Tags
    C++
Click For Summary
SUMMARY

The discussion centers on linking the FFTW library (version 3.3.10) in a C++ project using Visual Studio on Windows. The user encounters a linker error, specifically LNK1181, indicating that the build process cannot find the required 'Release.obj' file. The user has correctly configured the project properties to include the FFTW3.lib file in the Additional Dependencies and set the appropriate directories for VC++ Include and Library Directories. The absence of the .obj file suggests a misconfiguration in the linking process or an incorrect expectation of the file types needed for the build.

PREREQUISITES
  • Understanding of C++ development in Visual Studio 2019
  • Familiarity with linking external libraries in Windows
  • Knowledge of FFTW library usage and its file structure
  • Basic troubleshooting skills for linker errors in C++ projects
NEXT STEPS
  • Review the FFTW library documentation for proper linking instructions
  • Learn how to configure Visual Studio project properties for external libraries
  • Investigate the differences between .lib and .obj files in C++ linking
  • Explore common linker errors in Visual Studio and their resolutions
USEFUL FOR

C++ developers working on Windows who need to integrate the FFTW library, as well as those troubleshooting linker errors in Visual Studio projects.

cppIStough
Messages
24
Reaction score
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
cppIStough said:
Title says it all,
All except the command you are using and the error message you get.
 
  • Love
  • Like
Likes   Reactions: FactChecker and pbuk
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
 
I don't develop in Windows, but in unix, the command is different to link in foo.obj and foo.lib.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 15 ·
Replies
15
Views
8K
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 6 ·
Replies
6
Views
12K
Replies
18
Views
3K