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:
  1. class lib1
  2. {
  3. public:
  4. void func1()
  5. {
  6. }
  7. }
  8. class lib2
  9. {
  10. public:
  11. void func2()
  12. {
  13. func1();
  14. }
  15. }
  16. class exeClassWorking
  17. {
  18. exeClass()
  19. {
  20. func1();
  21. }
  22. }
  23.  
  24. class exeClassWorking2
  25. {
  26. exeClass()
  27. {
  28. func1();
  29. func2();
  30. }
  31. }
  32. class exeClass_NOT_Working
  33. {
  34. exeClass()
  35. {
  36. func2();
  37. }
  38. }
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.