Qt Creator: creating Static- and Shared-friendly libraries
I am using Qt Creator in developing Qt libraries. I want to develop my libraries in both static and shared.
However when you use Qt creator, there are different sets of output files with the 2 types. The produced static library has 2 files and the shared library has 3 files (with an extra *_global.h).
I know how to use the CONFIG in the pro file, however when compiling a library from shared to static or static to shared produces some linking errors. How can I make my library be static- and shared-friendly?
I'm starting now on Qt, and I don't know how I can do this, but, I think you need add something on the file .pro
Which build system are you using? Qmake?
[quote author="dotK" date="1359023381"]Hi,
I'm starting now on Qt, and I don't know how I can do this, but, I think you need add something on the file .pro[/quote]
I know about that... CONFIG
but i think it is a linker error.
[quote author="Tobias Hunger" date="1359027717"]Which build system are you using? Qmake?[/quote]
Yes, my Qt Creator uses Qmake