This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: BUG: ANSI C++ forbids declaration ... with no type
- To: Piotr Klaban <makler at man dot torun dot pl>
- Subject: Re: BUG: ANSI C++ forbids declaration ... with no type
- From: Nathan Sidwell <nathan at acm dot org>
- Date: Fri, 15 Oct 1999 11:51:49 +0100
- CC: bug-gcc at gnu dot org
- References: <19991015113751.P8553@man.torun.pl>
- Reply-To: nathan at cs dot bris dot ac dot uk
Piotr Klaban wrote:
>
> Hi, I have searched the Web and GCC mailing lists
> for the solution with no success.
> The problem is:
> - I could not compile any C++ program that
> includes system header from the X11 directory
> of any Solaris 2.6 / Solaris7 system.
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/openwin/include -I./../include -DLIBPLOT -DLIBPLOTTER -O2 -c -fPIC -DPIC apioldcc.cc -o .libs/apioldcc.lo
> In file included from ../include/plotter.h:41,
> from extern.h:44,
> from apioldcc.cc:19:
> I know that system include files should not generate such errors,
> since SUN would not change standard X11 header files.
Please file a bug report with Sun, they need customers complaining about this, to get the problem fixed. Meanwhile try -fpermissive
nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
I have seen the death of PhotoShop -- it is called GIMP
nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk