This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Compiling functions without return type.
- To: Gcc Help <gcc-help at gcc dot gnu dot org>
- Subject: Compiling functions without return type.
- From: amol jakatdar <ajakatda at cs dot odu dot edu>
- Date: Thu, 27 Jan 2000 15:07:10 -0500 (EST)
Hi,
is there a way to compile following code using g++:
#include <stdio.h>
f(); // Function defination w/o return type
int main(int argc, char *argv[])
{
f();
return 0;
}
f()
{
printf("%d",1);
return 0;
}
I know this is against ANSI standards, but I have some header files,
defining functions like this.
Amol