I'm using #include <libpcan.h> and #include <pcan.h> in my code as mentioned in a sample code. I'm compiling the code with the -lpcanfd compiler. When I add #include <libpcan.h> to the Qt header and compile my code, I get an error like this:
expected unqualified-id before 'void' static Qt :: HANDLE
currentThreadId () Q_DECL_NOTHROW;
If I comment #include <libpcan.h> the compilation process completes without error (s). Can anyone give me a solution? Excluding libpcant, I will not be able to use the device.
Can you give us an extract of your code, as well as the whole compilation cmd line and error message?
Generally speaking, you don't have to #include any <pcan.h> but only <libpcan.h> (or <libpcanfd.h>).