C/C++ Anyone with experience linking FFTW for C++

  • Thread starter Thread starter cppIStough
  • Start date Start date
  • Tags Tags
    C++
AI Thread Summary
The discussion centers on linking the FFTW library in a Visual Studio environment on Windows, where the user encounters a linker error. The user has configured the project settings to include the path to the FFTW3.lib file in the Linker settings and has added the necessary directories for includes and libraries. However, upon compiling, they receive a fatal linker error indicating that it cannot find a .obj file, specifically 'C:\external_libs\fftw-3.3.10\Release.obj'. The user expresses confusion over why the build process is looking for an .obj file instead of the expected .lib file, highlighting a difference in linking practices between Windows and Unix environments. The discussion seeks insights on resolving this linking issue with the FFTW library.
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 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.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...
Back
Top