I am trying to use GSL
in Qt/C++. I compiled the library using MinGW in Windows following this tutorial.
I did not copy the directory, GSL
is in c:/gsl-1.16
I linked in Qt like this:
win32{
INCLUDEPATH += C:/gsl-1.16/include /
INCLUDEPATH += C:/gsl-1.16/lib
LIBS += -LC:/gsl-1.16/bin -llibgsl-0 -llibgslcblas-0
LIBS += -L/usr/local/lib example.o -lgsl -lgslcblas -lm
}
And it recognizes the #include <gsl/...>
.
But when I use a GSL
object, the application just crashes at the start but it builds well.
Am I forgetting something or doing something wrong?