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.
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.
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:to your .pro file.Qt Code:
LIBS += -L/some/dir/lib -lsomething INCLUDEPATH += /some/dir/includeTo copy to clipboard, switch view to plain text mode
Bookmarks