Anyone with experience linking FFTW for C++

  • #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

  • Programming and Computer Science
Replies
2
Views
2K
  • Programming and Computer Science
Replies
2
Views
5K
  • Programming and Computer Science
Replies
2
Views
3K
  • Programming and Computer Science
Replies
4
Views
3K
  • Programming and Computer Science
Replies
1
Views
509
  • Programming and Computer Science
Replies
4
Views
5K
  • Programming and Computer Science
Replies
2
Views
569
  • Calculus
Replies
11
Views
2K
  • Programming and Computer Science
Replies
2
Views
234
  • Programming and Computer Science
Replies
8
Views
461
Back
Top