Re: [ROOT] compilation error in x11

From: Luigi Esposito-MACRO (Luigi.Salvatore.Esposito@bo.infn.it)
Date: Thu Oct 17 2002 - 12:27:13 MEST


Hello.
I fix this problem adding this line 
#include </usr/X11R6/include/X11/Xlib.h> in GX11Gui.cxx 
as I found in that mail

http://root.cern.ch/root/roottalk/roottalk01/4143.html

But I don't understand why to do in this way.
I continued the compilation but I got another error

g++ -O -pipe -Wall -Woverloaded-virtual -fPIC -Iinclude  -D_REENTRANT 
-I/usr/local/include -o x11ttf/src/TGX11TTF.o -c x11ttf/src/TGX11TTF.cxx
In file included from include/TGX11.h:31,
                 from include/TGX11TTF.h:29,
                 from x11ttf/src/TGX11TTF.cxx:28:
/usr/local/include/X11/Xlib.h:1882: ISO C++ forbids declaration of
`XSetTransientForHint' with no type

... a lot of declaration like the last one

gmake: *** [x11ttf/src/TGX11TTF.o] Error 1

Can you help me?
Thanks,

	Luillo


On 16 Oct 2002, Fons Rademakers wrote:

> Make sure you have the correct X11 devel pacakage installed.
> 
> Cheers, FOns.
> 
> 
> On Wed, 2002-10-16 at 13:28, Luigi Esposito-MACRO wrote:
> > Hello,
> > I have downloaded the ROOT source v3.03.09 and I have tried to compiled 
> > it with the compiler gcc version 2.96 on a RedHat 7.1. 
> > 
> > I got the following error:
> > 
> > 
> > g++ -O -pipe -Wall -Woverloaded-virtual -fPIC -Iinclude  -D_REENTRANT -o 
> > x11/src/GX11Gui.o -c x11/src/GX11Gui.cxx
> > x11/src/GX11Gui.cxx: In method `Int_t TGX11::OpenDisplay (const char 
> > *)':
> > x11/src/GX11Gui.cxx:733: `XInitThreads' undeclared (first use this 
> > function)
> > x11/src/GX11Gui.cxx:733: (Each undeclared identifier is reported only 
> > once for each function it appears in.)
> > gmake: *** [x11/src/GX11Gui.o] Error 1
> > 
> > 
> > What is the problem?
> > 
> > Thanks for any suggestion,
> > 
> > 
> > 	Luillo
> > 
> > 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:14 MET