Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If this is a verbatim copy-paste, you have this:

 * rosserial Publisher Example
 * Prints "hello world!"

Note how the first line starts with a *.

It's very likely you made a mistake copying the example, and it should actually be /*, which would be the start of a multi-line comment.

A single star (*) on its own is not a legal character there, hence the compiler error.