Page 1 of 1

PCAN USB QT Interfacing issue

Posted: Mon 21. Nov 2016, 10:15
by ganeshredcobra
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

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;
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

Re: PCAN USB QT Interfacing issue

Posted: Mon 21. Nov 2016, 12:13
by M.Maidhof
Hi,

please have a look on the following post:

http://www.peak-system.com/forum/viewto ... 5774#p5774

regards

Michael