Thread: Syntax error before or at

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    17

    Syntax error before or at

    Hello,
    i get the following error, when i try to compile my programm with the sun cc compiler:
    Code:
    syntax error before or at: *
    The Problem Line is this one:
    Code:
    GList *glist = NULL;
    GList is a data type from the glib.
    The code can be compiled completle fine with gcc, but i have to use the sun compiler.

    Does anybody know, what the reason for this strange behaviour is?

  2. #2
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    869
    It doesn't know what a GList is, which means you haven't included whatever header contains the typedef for a GList.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Perhaps it's the line (or two) before then.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM