>>>>> "Christoph" == Christoph M Friedrich <[EMAIL PROTECTED]> writes:

Christoph> Hi, i just tried to compile lyx1.0.3 or lyx1.0.4pre6 on a
Christoph> Solaris 7 box with g++ 2.95.1, but it fails to
Christoph> compile. With the former version of gcc 2.8.1 it worked,
Christoph> but now i got:

The GCC FAQ at cygnus says:

---------------------------------------------
How do I compile X11 headers with g++

When compiling X11 headers with a GCC 2.95 or newer, g++ will complain that types are 
missing. These headers
assume that omitting the type means 'int'; this assumption is wrong for C++.

g++ accepts such (illegal) constructs with the option -fpermissive; it will assume 
that missing type is 'int' (as
defined by the C89 standard).

Since the upcoming C99 standard also obsoletes the implicit type assumptions, the X11 
headers have to get fixed
eventually.
---------------------------------------------

You can use the -fpermissive flag by using

CXX='g++ -fpermissive' ./configure [your options here]

This problem with X includes will have to be solved in one way or
another, but I do not know how we should do it. I'll try to find a
configure test case for it...

JMarc

Reply via email to