Error: ANSI C++ forbids declaration `samplefunc' with no type
Mumit Khan
khan@xraylith.wisc.edu
Wed Dec 15 16:10:00 GMT 1999
In article < 3857D83F.FBFB779A@datan.de >,
Ralf Vandenhouten <vandenhouten@datan.de> wrote:
>I am using egcs 2.95.1 on a Sun Sparc (Solaris 2.6). When compiling a
>C++ program using X11 libraries (some functions of which are declared
>without a return type, unfortunately), I get the error message
>
>ANSI C++ forbids declaration `samplefunc' with no type
http://egcs.cygnus.com/faq.html#X11R6
As you can guess, this is indeed a frequently asked question.
Regards,
Mumit
More information about the Gcc-help
mailing list