error: struct has no member named X

Look at the first error message of the compiler. It should complain about the *char in line 6, which should be char *.

By the way: always copy and paste error messages, so that we get the original messages.

Leave a Comment