This forum covers PCAN-Linux and Linux development issues concerning our products
-
ganeshredcobra
- Posts: 4
- Joined: Mon 20. Jan 2014, 09:31
Post
by ganeshredcobra » 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
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