From: Kallol Biswas <kallolbiswas@yahoo.com>
To: gcc-help@gcc.gnu.org
Subject: gnu C++ compilation problem
Date: Fri, 08 Feb 2002 16:12:00 -0000 [thread overview]
Message-ID: <20020209001226.68683.qmail@web13208.mail.yahoo.com> (raw)
In-Reply-To: <20020208221404.GA9530@satyr.sylvan.com>
#gcc -v
gcc version 2.95 19990728 (release)
The following .cpp file can't be compiled. Any
workaround is greatly appreciated.
-------------------ll.cpp----------------------
struct ip_opts
{
int x;
char ip_opts[40]; /* Actually variable
in size. */
};
main()
{
struct ip_opts tmp;
tmp.x=10;
}
The error message displayed is:
gcc /tmp/ll.cpp
/tmp/ll.cpp:4: ANSI C++ forbids data member `ip_opts'
with same name as enclosing class
__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com
prev parent reply other threads:[~2002-02-09 0:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-08 11:50 how can cout be undeclared? Kirk
2002-02-08 13:41 ` Frank Geck
2002-02-08 14:14 ` Kayvan A. Sylvan
2002-02-08 16:12 ` Kallol Biswas [this message]
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=20020209001226.68683.qmail@web13208.mail.yahoo.com \
--to=kallolbiswas@yahoo.com \
--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).