Hi there,
Has anybody experience problem while developing static libraries, with this setup?
It seems that i have linking problem when i used a function within a library class "lib1" that use a function funLib2 within another library "lib2"(something like a wrapper library). if i called the lib1 fuction directly from the exe it is ok, but if called thru lib2 the linker says undefined reference.
Qt Code:
class lib1 { public: void func1() { } } class lib2 { public: void func2() { func1(); } } class exeClassWorking { exeClass() { func1(); } } class exeClassWorking2 { exeClass() { func1(); func2(); } } class exeClass_NOT_Working { exeClass() { func2(); } }To copy to clipboard, switch view to plain text mode
I hope i could be clear, anyway i will be glad to detailed more in case needed.
in all cases both lib have been include in the pro file.
Any of this approach works when i compiled as shared.
Bookmarks