Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7059729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:16:03+00:00 2026-05-28T04:16:03+00:00

So I’m working with some older code I wrote some time ago. I was

  • 0

So I’m working with some older code I wrote some time ago. I was originally going to port it to Windows, had some success, but quickly ran into other problems and decided to move back to a *nix environment. The original code compiled and ran just fine in the first try.

I’m running Ubuntu 11.10 and have chosen Eclipse as my IDE. When compiling and running the original code, everything is fine. Now I’ve installed the FFTW library ([fftw.org][1]) and can’t seem to build anything that uses the library.

I installed the library using aptitude in the terminal:

sudo apt-get install libfftw3-dev libfftw3-doc

The library definitely exists:

~$ g++ -lfftw3
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status

And I’ve added “fftw3” to my project’s properties->C++ Linker->Libraries list in Eclipse.

The header file is found just fine.

When I go to compile, every single data type that is defined in the library fails to be defined, so essentially the compiler has no idea what to do.

I’m a bit stumped…

Here’s one of the errors (they’re all identical):
Line:

fftw_real a[M][N];

Error:

error: ‘fftw_real’ was not declared in this scope

I’m not sure what else to try. Your help and expertise is greatly appreciated. Thanks in advance.

SOLVED! Here’s the solution

For anyone else working with OLD CODE and low on sleep, searching on Google and StackOverflow for a solution to a similar problem, learn from my stupid mistake instead of making your own.

The key phrase here is old code. My code was written for FFTW 2, but I’m using version 3 of the library, which has a radically different interface. I had to update all my code that uses the library, then everything worked as normal.

Doh! How dumb. I hope someone out in Google land finds this useful some day.

Thank you, Dietmar Kühl, for helping me realize what was wrong. I appreciate you taking the time to install the library and poke around; that was very nice of you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:16:04+00:00Added an answer on May 28, 2026 at 4:16 am

    Using find fftw-3.3 | xargs grep fftw_real reveal that

    fftw-3.3/ChangeLog: fftw_real is gone

    This seems to be the root problem (well, just providing an answer to have this question closed as being answered, really).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I need to clean up various Word 'smart' characters in user input, including but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.