Problems linking gsl 2.1
I'm using Qt 5.8 and gsl 2.1 (compiled with cygwin64), this is what i use in the .pro file to link gsl:
INCLUDEPATH += C:/gsl/LIBS
LIBS += -LC:/gsl/lib -lgsl -lgslcblas -lm
when i include the headers and compile i don't have any problem even when i declare and object, but when i tray to use any function i got this error:
C:\Users\CIFAS-1\untitled4\mainwindow.cpp:9: error: undefined reference to `gsl_matrix_alloc'.
Please any one has some idea?
compiled with cygwin64
Do you use exactly the same compiler you used to build gsl?
On Windows you cannot mix different compilers.
I use to compile gsl cygwin64 and to run the example the Qt creator default compiler
@avillaj88 There is no default compiler in QtCreator.
Which compiler do you use in QtCreator?
What exact Qt version did you install?
Use same compiler for both, Qt and gsl.
Sorry I mean that to run the example I use mingw 5.3 because I 'm using Qt Creator with mingw but I don't know how to compile gsl with that compiler and I can't find any example of how to do it cause all the examples use cygwin.