From mboxrd@z Thu Jan 1 00:00:00 1970 From: amol jakatdar To: Gcc Help Subject: Compiling functions without return type. Date: Thu, 27 Jan 2000 12:07:00 -0000 Message-id: X-SW-Source: 2000-01/msg00174.html Hi, is there a way to compile following code using g++: #include 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: amol jakatdar To: Gcc Help Subject: Compiling functions without return type. Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: X-SW-Source: 2000-q1/msg00174.html Message-ID: <20000401000000.Ob1svff8j2-ToDqJzqeHyDPVfoE3OtuyqBsiA8MMWVI@z> Hi, is there a way to compile following code using g++: #include 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