PDA

View Full Version : Best way of creating a library in qt



ehnuh
24th November 2012, 07:19
Hi, I am currently developing a library of headers to be used by other qt projects. I am thinking of the best way to implement it.

I created a .pro file that will be the library, for example:

MyLibrary.pro

..in my Include folder are the following:
1) ProductAHeaders
2) ProductBHeaders

both holders contains the same header file names but its content varies since they are different products.

to put it simply I will be offering an API that will give the desired headers and parameters depending on the type of product (either ProductA or Product B)

..should I use a shared library , dynamic or static library.

amleto
24th November 2012, 16:10
a shared library IS a dynamic library. If you make a static lib, then you have to compile your other app with the library every time.