gnu C++ compilation problem
Kallol Biswas
kallolbiswas@yahoo.com
Fri Feb 8 16:12:00 GMT 2002
#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
More information about the Gcc-help
mailing list