PDA

View Full Version : Problems linking gsl with Qt



dtallart
8th July 2011, 16:45
gsl is a Scientific Library made it by GNU.
Iam having problems linking this library with Qt.
Here my .pro file:

QT ...
TARGET = ...
TEMPLATE = ...
SOURCES += ...
HEADERS += ...
FORMS += ...

#here is the theme!!!!!!######

win32{
INCLUDEPATH += C:\GnuWin32\include /
INCLUDEPATH += C:\GnuWin32\lib
LIBS += -LC:\GnuWin32\lib -lgsl
}
###############

With this I accomplish a lot, but when I run the project, the "Application Output" says:

Starting E:\Work\interpolacion\LegendreTest-build-desktop\debug\LegendreTest.exe...
E:\Work\interpolacion\LegendreTest-build-desktop\debug\LegendreTest.exe exited with code -1073741515

Never run, its like run-close without showing something.

If Somebody know how help me, please response this.:crying::crying:
:confused::confused:

totem
8th July 2011, 17:47
what if you run your app in debug mode (F5) and walk down your code step by step to see where it crashes ?
tip : put a debug breakpoint on the very first statement of your application entry point (i.e. the function main())

ChrisW67
9th July 2011, 08:35
You need to ensure that the shared library directory is in the PATH of the run environment of your IDE so that Windows can find it.