Hi,
I m using QT Creator (QT 4) for learning QT.
I need to include some external header files and libraries to my project. How can i do that?
Hi,
I m using QT Creator (QT 4) for learning QT.
I need to include some external header files and libraries to my project. How can i do that?
simply include the header files of the library viaand then use LIBS in your *.pro file. See the documentation for more info.Qt Code:
#include "/path/to/library/header.h"To copy to clipboard, switch view to plain text mode
Zlatomir (30th September 2010)
Zlatomir (30th September 2010)
I've read about this on line and I can't seem to get the hang of it. I have directory full of h, lib and dll files that I need linked with my code. How do I get Qt to use all of them?
header files: include them in your code
lib files: add LIBS += -l<libname> to .pro file of your project
dll files: these are not required for compilation.
Zlatomir (30th September 2010)
What if I wish to add a .dll file to my project rather than a .lib? It doesn't seem to recognize that format.
You don't. Your project relies on X.lib which in turns relies on X.dll. Your project does not need X.dll to compile, only for execution.
Bookmarks