Qt .pro combine libraries

  .a, mingw, qmake, qt, windows

I have a subdirs Qt project composed of :

  • an external (not made by me) lib
  • an internal (made by me) lib using the external lib
  • an application using the internal lib

I am on Windows using mingw as compiler

When compiling the libraries I have no issues, everything seems to work fine.

But when I compile the application, I get an ld error : undefined reference to external lib functions (called from internal libs function).

I think this is because when compiling the internal library these method are not called therefore not loaded and this is why it can’t find them.

Is there a way to combine the 2 libraries (or at least to force the compiler/linker to resolve the symbols) when compiling the internal library ?

Source: Windows Questions