waynew
15th November 2010, 01:54
I really need to get this solved and would appreciate any help someone can give me.
I have tried in various ways to use this external library (tqsllib2.dll, compiled with Mingw) with no success.
Here is the latest attempt.
(I have included the library .h in my application header file}
My pro file looks like this:
INCLUDEPATH += C:\cpp\qt_projects\hrlogger_development\debug\tqsl lib
LIBS += -L"C:\cpp\qt_projects\hrlogger_development\debug\tqsl lib"
LIBS += -ltqsllib2
The first time I try to access the library is like this:
int ret = tqsl_init();
qDebug() << "ret from tqsl is " << ret;
tqsl_init() is defined in the tqsllib.h file I have included and the .h is in the proper directory.
So, as Wysota would say, what is the error?
The code compiles with no errors.
But the error is that when I put the code in to call tqsl_init() as shown above, the application crashes as it starts. With that code commented out, the application runs normally.
So what am I doing wrong here?
I have tried in various ways to use this external library (tqsllib2.dll, compiled with Mingw) with no success.
Here is the latest attempt.
(I have included the library .h in my application header file}
My pro file looks like this:
INCLUDEPATH += C:\cpp\qt_projects\hrlogger_development\debug\tqsl lib
LIBS += -L"C:\cpp\qt_projects\hrlogger_development\debug\tqsl lib"
LIBS += -ltqsllib2
The first time I try to access the library is like this:
int ret = tqsl_init();
qDebug() << "ret from tqsl is " << ret;
tqsl_init() is defined in the tqsllib.h file I have included and the .h is in the proper directory.
So, as Wysota would say, what is the error?
The code compiles with no errors.
But the error is that when I put the code in to call tqsl_init() as shown above, the application crashes as it starts. With that code commented out, the application runs normally.
So what am I doing wrong here?