tags:

views:

81

answers:

1

FFTW 2.x builds a .la file (under fftw/.libs directory).

I think I need a .so file to link to. (I am not sure, because I am a gcc newbie).

+2  A: 

In general on Linux, a .so file is dynamic library and a .a or .la is for statically linking with. Which one you need depends on your application and how you installed/built the library. For a tutorial on static vs. dynamic linking see this site. Also, did you build fftw yourself from source, or did you use a package manager? This would help answer your question. As for using gcc, check out this manual page, it might clear some stuff up.

So yeah, the short answer is either to stick with the .a or when building fftw specify that you want a shared library. ./configure --enable-shared

zdav
i built it from source
Ries
the other libs i use are all .so and are linked to using -lpython2.4 for instance, where i have a libpython2.4.so.0.0.0
Ries
Well, in that case, when you compile the library you need to specify 'shared' and not 'static'. If you are using a distro like unbuntu or fedora, then just use the package manager and install the -devel package.When building add --enable-shared when you call ./configureFrom the fftw manual. http://www.fftw.org/fftw3_doc/Installation-on-Unix.html#Installation-on-Unix
zdav
ok, thanks. i see i can link with the .a libb same as with a .so file...
Ries