error invalid use of member function (did you forget the '()' ?)

exit status 1
invalid use of member function 'virtual int HardwareSerial::read()' (did you forget the '()' ?)

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Split from an old topic

Please post your complete program and the full error message and give details of any libraries used

Lukeskywalker:
exit status 1
invalid use of member function 'virtual int HardwareSerial::read()' (did you forget the '()' ?)

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Well, I'm no expert, but I'd say the compiler found a problem with the code you didn't show us.