This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: BUG: ANSI C++ forbids declaration ... with no type


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]