PCAN USB QT Interfacing issue
Posted: Mon 21. Nov 2016, 10:15
I recently purchased one PCAN USB device. I am having trouble interfacing the API's with my QT GUI. I am using #include < libpcan.h> and #include < pcan.h> in my code as mentioned in one sample code.I am compiling the code with -lpcanfd compiler flag . When i am adding #include < libpcan.h> in the header and compiling my QT code i am getting an error like this
if i am commenting #include < libpcan.h> its not throwing error. Can anyone suggest me a solution? Without including libpcan header i wont be able to use the device
Code: Select all
/usr/include/x86_64-linux-gnu/qt5/QtCore/qthread.h:53:16: error: expected unqualified-id before 'void' static Qt::HANDLE currentThreadId() Q_DECL_NOTHROW;