CppLinuxSerial icon indicating copy to clipboard operation
CppLinuxSerial copied to clipboard

enum class error. :(

Open sFaster opened this issue 1 year ago • 1 comments

Hi. I am solving under message. I using C++17 in ubuntu 22.04.

include/CppLinuxSerial/SerialPort.hpp:89:13: error: expected identifier before numeric constant 89 | OFF,

What can I do for?

Thank you.

sFaster avatar Feb 17 '24 03:02 sFaster

Hmmm, I don't think there is a syntax error in the header file. Do you potentially have a preprocessor macro assigned to "OFF" that replaces it with a number (probably 0) passed in at compile time?

gbmhunter avatar Feb 18 '24 08:02 gbmhunter