Linking Libraries in Xcode

后端 未结 4 950
Happy的楠姐
Happy的楠姐 2020-12-01 05:47

I\'m using a powerbook (osx 10.5) and recently downloaded and installed FFTW 3.2 (link text). I\'ve been able to compile and run some simple programs based on the online tut

4条回答
  •  攒了一身酷
    2020-12-01 05:56

    To link to a .a library like this in Xcode you need to:

    • Double-click on your target or application in Xcode to open the Info window

    • Switch to the "Build" tab

    • Add -lfftw3 to "Other Linker Flags" (under "Linking")

    • Add the path to your library to the "Library Search Paths" (under "Search Paths"). In your case this will be /usr/local/lib

    We use FFTW (it's great by the way), this works for us!

提交回复
热议问题