prasad prasad - 8 months ago 52
C++ Question

unable to call c++ functions in qt

I have a shared library of the C++ application and I am able to call it using the test app. I want to write a Qt UI for this. I am not able to call the C++ functions directly. Only if I give name mangled function name it works.
Also if I create an object of the C++ class and call a function of the class I am getting "undefined reference to " the function.
How can I call the C++ functions and create objects of C++ class and call functions on them?


You must include the path to the headers files. To do this in Qt Creator, modify your .pro file to include the following line:

INCLUDEPATH += path/to/header/files

you will notice that you MUST use the slash above... If you try using '\', it will not work.