Hi all !

Here is my problem : I have a project that has two subprojects, both are libraries. One is QJson and the other one is home-made and uses Qt. I then have an other project that will use these two libraries. I want this main project to use my set of library statically.

Here is what I have in my .pro :

Qt Code:
  1. LIBS += -L$$PWD/../../../libmylib/lib/
  2. LIBS += -lqjson -lmylib
  3.  
  4.  
  5. INCLUDEPATH += $$PWD/../../../libmylib/include
  6. DEPENDPATH += $$PWD/../../..libmylib/include
To copy to clipboard, switch view to plain text mode 

Everything works fine under MAC OS X.

Now, I want this project to work on Windows. And here are the issues. My main project complains about undefined references to mylib. MyLib project has generated qjson.a and qjson.dll, mylib.a (no dll).

Shouldn't my library be outputed as a .lib ? Why don't I have a dll for mylib ?

Thanks