Syntax error before or at

This is a discussion on Syntax error before or at within the C Programming forums, part of the General Programming Boards category; Hello, i get the following error, when i try to compile my programm with the sun cc compiler: Code: syntax ...

  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
    cwr
    cwr is offline
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    868
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,544
    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, 04:45 PM
  3. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 06:33 AM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 09:33 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM

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