solved the problem in compiling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Date: Thu, 5 Feb 2004 15:40:54 +0100
To: gcc-help@xxxxxxxxxxx
From: Sergio Villone <s.villone@xxxxxxxxxxxx>
Subject: cannot solve this problem in compiling
Cc:
Bcc:
X-Attachments:

I just cannot manage to understand why the statement:
typedef int (FACopyProgressProc)(long par, long value, long max);


gives the error: error: two or more data types in declaration of `FACopyProgressProc' and not once but four times for the same line... this with gcc 3.3 under mac os X can anybody help me? TIA Sergio

despite many tried to help unsuccessfully, the problem was that the line in object was preceded by an incorrectly written 'enum' i.e. not terminated by a ';': say:


enum
{
FIRST,
SECOND,
THIRD
}    // <---- NOTE! THE ';' IS MISSING!
typedef int (FACopyProgressProc)(long par, long value, long max);


hardly can I admit that the error message be meaningful! I hope this can be helpful to someone getting the same 'smoky' error message... --Sergio

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux