At Tue, 18 Dec 2007 09:23:30 -0600, Dirk Eddelbuettel wrote: > > /usr/lib/libgsl.so: undefined reference to `cblas_zher2k' > > /usr/lib/libgsl.so: undefined reference to `cblas_strsv' > > /usr/lib/libgsl.so: undefined reference to `cblas_zdotc_sub' > [ many more of these ] > > Can you see a way forward on this? Is is maybe a question of link order, ie > could -lgslcblas -lgsl be an answer?
The option -Wl,--as-needed needs to be disabled in some way, if it's applied globally it's certainly not compatible with libraries that depend on other libraries (surely a fairly common occurrence?). The link order is not a factor. Maybe there is some official way to turn off that feature in qmake, or to make it behave more intelligently with regard to external libraries vs Qt libraries. Otherwise one could put the gsl library at the end of the libraries list with -Wl,--no-as-needed: .... -Wl,--no-as-needed -lgsl -lgslcblas -lm -- Brian Gough -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]