On Mon, Oct 18, 2010 at 07:50:32PM +0200, Thorsten Alteholz wrote: > Can you please be a bit more detailed? > > >Is it possible that you just need to drop the > >@LIBS@ instead? > > As far as I understood this pkgconfig stuff, the output of: > pkg-config --libs harminv > should be a list of libraries that are needed to build something > that uses harminv. Without @LIBS@ I will get only -lharminv which is > definitely not enough, as other libs like -llapack -lcblas -latlas > -lm are needed as well. As @LIBS@ also contains versioned gcc > directories I realized that this is not the best choice, but why > shall I also omit all other libriaries?
Why are the other -l needed? Given that harminv.h is self-contained you do not need other libraries at link-time because all references can be resolved with libharminv.so, no? And the symbols harminv itself needs do not need to be specified at application link-time because they will be resolved by the runtime linker. A sample program I just came up with linked with -lharminv just fine, too. But maybe you can try it with real programs yourself. (If your program needs the other libraries by itself, i.e. by using symbols of them, it needs to link with them, of course, but that's seperate.) Kind regards, Philipp Kern
signature.asc
Description: Digital signature