Hello ,
I am trying to link against a static library to run an examples and make sure it works before I invest more into it .It compiles without problem but when run the program terminates with a console message “ Press <RETURN > to close this window” .
My minimal .pro file looks like this
LIBS += -L$$PWD/libraries/lib/ -llibzinnia
INCLUDEPATH += $$PWD/libraries/include
DEPENDPATH += $$PWD/libraries/include
and my main function like this
#include <iostream>
#include "zinnia.h"
int main()
{
zinnia::Recognizer *recognizer = zinnia::Recognizer::create();
std::cout<<"TEST IF THE PROGRAM GETS HERE"<<std::endl;
.............
return 0;
}
The program exists as soon as I call something from the library.(even the test line is not printed out).The same thing happened to me a few days ago with another library so I think I am doing something wrong linking against libraries here.Or might this have something to do with the system that compiled the libraries?
I am working on windows7 Qt 4.8.1 Creator 2.7.1 and msvc2010.I tried on my other setup with msvc2008 and hit the same issue.
Any help would be appreciated.Thanks.
↧