Solved How does Qt Creator link different object files/libs in default?
-
I am wondering if making a project, how does qt creator link these files? Or will qt creator create any static/dynamic libs?
what is the default setting? simply create relocatable object file for every cpp file and then link them together? -
Hi,
Qt Creator does no such things, it's "just" an IDE. The compiler/linker from your platform will do the work.
What will be generated will depend on your project i.e. if it's an application, a lib etc. You can check the TEMPLATE variable in qmake's documentation.
-
Hi,
Depending on the information in .pro file(project file). qmake creates the make file.
If you want to create the library use
TEMPLATE += lib
or
want to create the appTEMPLATE += app
in .pro file
Thanks,