expected ')' before '*' token error?

This is a discussion on expected ')' before '*' token error? within the C Programming forums, part of the General Programming Boards category; I understand the what the error is conveying but am lost as to why Code: void mainMenu(NodeType*, GameNodeType*); is expecting ...

  1. #1
    Registered User
    Join Date
    Nov 2012
    Posts
    2

    expected ')' before '*' token error?

    I understand the what the error is conveying but am lost as to why
    Code:
    void mainMenu(NodeType*, GameNodeType*);
    is expecting a ')' at the first '*' character.

    NodeType and GameNodeType are included in a through a header file before this line.

  2. #2
    Registered User camel-man's Avatar
    Join Date
    Jan 2011
    Location
    Under the moon
    Posts
    643
    It could be the fact that you typedefed your structs after your prototype. Post the header file.

  3. #3
    Registered User
    Join Date
    Nov 2012
    Posts
    2
    Well i would but i found my issue when i looked over my types header file. It would make sense that DistrictNodeType is not the same thing as NodeType.

    Those errors are annoying. But thank you for offering to help. Have a good day.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Error expected '=', ',' ,'asm', 'or' before token '{'
    By tmac619619 in forum C Programming
    Replies: 2
    Last Post: 10-13-2012, 03:33 PM
  2. error: expected ) before * token
    By evb@studioe.com in forum C Programming
    Replies: 4
    Last Post: 01-10-2012, 02:13 PM
  3. error: expected unqualified-id before '{' token
    By fhbwghads in forum C++ Programming
    Replies: 5
    Last Post: 12-25-2008, 04:39 AM
  4. error: expected ; before : token
    By kris.c in forum C Programming
    Replies: 5
    Last Post: 02-10-2008, 10:26 PM
  5. error: expected class-name before { token
    By keira in forum C++ Programming
    Replies: 8
    Last Post: 12-21-2007, 06:13 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21