View Full Version : Using User Defined Libraries
csvivek
27th May 2008, 19:18
Hi,
I have written a C application, which i have made as a shared library.
How to call the functions within this library in my Qt application?
--csvivek.
jacek
27th May 2008, 19:47
Qt applications are just plain C++ applications, so you have to include proper header and link your executable with the library.
If you use qmake and the library you want to use is libsomething.so placed in /some/dir/lib and the headers are in /some/dir/include, you have to add:
LIBS += -L/some/dir/lib -lsomething
INCLUDEPATH += /some/dir/includeto your .pro file.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.