Hi sir, currently I have tried this method:
..I am currently using mingw compiler, so the library file format generated is a '.a' and '.dll' format.
I added the library using 'add internal library'. This generated the code in my .pro file.
unix:!symbian|win32: LIBS += -L$$OUT_PWD/../../../BiTCommon/Template/Project/ -lTemplate
INCLUDEPATH += $$PWD/../../../BiTCommon/Template/Include
DEPENDPATH += $$PWD/../../../BiTCommon/Template/Include
..upon building the project, it gives me this error.
'cannot find -lTemplate'
..Next I tried to change the -lTemplate to -aTemplate since the library generated was in a '.a' format. Upon building there were no errors but when I instantiated the class it gave me this error.
error: undefined reference to `_imp___ZN19CTemplateMainWindowC1EP7QWidget'
..any inputs would really be helpful. To cut the long story short, I was previously compiling in msvc and it generated .lib files and I just link it to my project. Now that it is in mingw, it generates a different file format.
Bookmarks