catkin_make error ROS melodic beginner tutorials creating service and client
Hi, I'm new to ubuntu and ROS, and I'm learning through the tutorials here http://wiki.ros.org/ROS/Tutorials. I've followed each instruction there until writing a simple publisher, subscriber, service, and client just fine with the python. But when I try the C++ tutorial, I get this error when doing catkin_make. Any suggestion?
I'm on Ubuntu Mate 18.04 with ROS melodic
/usr/include/wctype.h:103:24: error: 'wint_t' was not declared in this scope
extern int iswupper_l (wint_t __wc, locale_t __locale) __THROW;
^~~~~~
/usr/include/wctype.h:103:24: note: suggested alternative: 'uint8_t'
extern int iswupper_l (wint_t __wc, locale_t __locale) __THROW;
^~~~~~
uint8_t
/usr/include/wctype.h:103:46: error: expected primary-expression before '__locale'
extern int iswupper_l (wint_t __wc, locale_t __locale) __THROW;
^~~~~~~~
/usr/include/wctype.h:103:54: error: expression list treated as compound expression in initializer [-fpermissive]
extern int iswupper_l (wint_t __wc, locale_t __locale) __THROW;
^
/usr/include/wctype.h:108:25: error: 'wint_t' was not declared in this scope
extern int iswxdigit_l (wint_t __wc, locale_t __locale) __THROW;
^~~~~~
/usr/include/wctype.h:93:24: note: suggested alternative: 'uint8_t'
extern int iswpunct_l (wint_t __wc, locale_t __locale) __THROW;
^~~~~~
uint8_t
/usr/include/wctype.h:93:46: error: expected primary-expression before '__locale'
extern int iswpunct_l (wint_t __wc, locale_t __locale) __THROW;
^~~~~~~~
/usr/include/wctype.h:93:54: error: expression list treated as compound expression in initializer [-fpermissive]
extern int iswpunct_l (wint_t __wc, locale_t __locale) __THROW;
^
/usr/include/wctype.h:98:24: error: 'wint_t' was not declared in this scope
extern int iswspace_l (wint_t __wc, locale_t __locale) __THROW;
^~~~~~
/usr/include/wctype.h:108:25: note: suggested alternative: 'uint8_t'
extern int iswxdigit_l (wint_t __wc, locale_t __locale) __THROW;
^~~~~~
uint8_t
/usr/include/wctype.h:108:47: error: expected primary-expression before '__locale'
extern int iswxdigit_l (wint_t __wc, locale_t __locale) __THROW;
^~~~~~~~
/usr/include/wctype.h:108:55: error: expression list treated as compound expression in initializer [-fpermissive]
extern int iswxdigit_l (wint_t __wc, locale_t __locale) __THROW;
^
/usr/include/wctype.h:113:24: error: 'wint_t' was not declared in this scope
extern int iswblank_l (wint_t __wc, locale_t __locale) __THROW;
^~~~~~
/usr/include/wctype.h:113:24: note: suggested alternative: 'uint8_t'
extern int iswblank_l (wint_t __wc, locale_t __locale) __THROW;
^~~~~~
uint8_t
/usr/include/wctype.h:113:46: error: expected primary-expression before '__locale'
extern int iswblank_l (wint_t __wc, locale_t __locale) __THROW;
^~~~~~~~
/usr/include/wctype.h:113:54: error: expression list treated as compound expression in initializer [-fpermissive]
extern int iswblank_l (wint_t __wc, locale_t __locale) __THROW;
^
/usr/include/wctype.h:122:24: error: 'wint_t' was not declared in this scope
extern int iswctype_l (wint_t __wc, wctype_t __desc, locale_t __locale)
^~~~~~
/usr/include/wctype.h:122:24: note: suggested alternative: 'uint8_t'
extern int iswctype_l (wint_t __wc, wctype_t __desc, locale_t __locale)
^~~~~~
uint8_t
/usr/include/wctype.h:98:24: note: suggested alternative: 'uint8_t'
extern int iswspace_l (wint_t __wc, locale_t __locale) __THROW;
^~~~~~
uint8_t
/usr/include/wctype.h:122:46: error: expected primary-expression before '__desc'
extern int iswctype_l (wint_t __wc, wctype_t __desc, locale_t __locale)
^~~~~~
/usr/include/wctype.h:122:63: error: expected primary-expression before '__locale'
ern int iswctype_l ...