From: amol jakatdar <ajakatda@cs.odu.edu>
To: Gcc Help <gcc-help@gcc.gnu.org>
Subject: Compiling functions without return type.
Date: Thu, 27 Jan 2000 12:07:00 -0000 [thread overview]
Message-ID: <Pine.SOL.4.05.10001271455270.7658-100000@rose.cs.odu.edu> (raw)
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
WARNING: multiple messages have this Message-ID
From: amol jakatdar <ajakatda@cs.odu.edu>
To: Gcc Help <gcc-help@gcc.gnu.org>
Subject: Compiling functions without return type.
Date: Sat, 01 Apr 2000 00:00:00 -0000 [thread overview]
Message-ID: <Pine.SOL.4.05.10001271455270.7658-100000@rose.cs.odu.edu> (raw)
Message-ID: <20000401000000.Ob1svff8j2-ToDqJzqeHyDPVfoE3OtuyqBsiA8MMWVI@z> (raw)
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
next reply other threads:[~2000-01-27 12:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-27 12:07 amol jakatdar [this message]
2000-01-27 15:46 ` llewelly
2000-04-01 0:00 ` llewelly
2000-04-01 0:00 ` amol jakatdar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.SOL.4.05.10001271455270.7658-100000@rose.cs.odu.edu \
--to=ajakatda@cs.odu.edu \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).