Re: [ROOT] Problem to compile application with 3.03/05 version

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue May 21 2002 - 11:28:54 MEST


Hi Iouri,

Remove the compilation flags -fno-rtti and -fno-exceptions.

To see the list of required compiler flags for your platform, do
  root-config --cflags

Rene Brun

Chitov Iouri wrote:
> 
> Hi, ROOTers,
> 
> I made CVS update and recompiled package to:
> 
>   *******************************************
>   *                                         *
>   *        W E L C O M E  to  R O O T       *
>   *                                         *
>   *   Version   3.03/05       21 May 2002   *
>   *                                         *
>   *  You are welcome to visit our Web site  *
>   *          http://root.cern.ch            *
>   *                                         *
>   *******************************************
> 
> FreeType Engine v1.x used to render TrueType fonts.
> Compiled for linux with thread support.
> CINT/ROOT C/C++ Interpreter version 5.15.39, May 11 2002
> 
> And now I can't compile my previously worked application.
> 
> rootcint reports exactly the same error for all my classes
> and gives no any Dictinaries *Dict.cxx:
> 
> ...
> Generating dictionary TGVEventDict.cxx...
> rootcint -f TGVEventDict.cxx -c TGVEvent.h TGVEventLinkDef.h
> g++  -MD -g -Wall -fno-rtti -fno-exceptions -fPIC -I../include
> -DSTANDALONE
> -D_REENTRANT
>  -I/exp/nemo/chitov/root/include -c TGVEventDict.cxx
> TGVEventDict.cxx: In function `class ::ROOT::TGenericClassInfo *
> GenerateInitInstance(co
> nst class TgvDStat *)':
> TGVEventDict.cxx:43: warning: requesting typeid of object without -frtti
> 
> ...
> 
> and of course compilation of final program fails:
> 
> g++  -MD -g -Wall -fno-rtti -fno-exceptions -fPIC -I../include
> -DSTANDALONE
> -D_REENTRANT
>  -I/exp/nemo/chitov/root/include   -g -L/usr/X11R6/lib -L/cern/pro/lib
> -L../lib -L. -lgu
> iTGV -lTGV -lTGVEvent -L/exp/nemo/chitov/root/lib -lCore -lCint -lHist
> -lGraf
> -lGraf3d -
> lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lm -ldl -lpthread
> -rdynamic -lMinui
> t -lGX11 -lGui -lHtml -lTreeViewer   calib_th228.cc     -lX11 -lXm -lXt
> -lnsl
> -lcrypt -r
> dynamic -lz -ldl -lm -o calib_th228
> /exp/nemo/chitov/root/lib/libTreeViewer.so: undefined reference to
> `TTreePlayer::SetScan
> FileName(char const *)'
> ./libTGV.so: undefined reference to `TgvFileItem type_info function'
> ./libguiTGV.so: undefined reference to `TGvMainFrame type_info function'
> 
> ./libTGV.so: undefined reference to `TgvResFile type_info function'
> ./libTGV.so: undefined reference to `TgvDatFile type_info function'
> ./libTGV.so: undefined reference to `TgvMain type_info function'
> ....
> 
> In fact, I made one important change - add the option --build=debug,
> maybe be
> this is the reason of problem? But I would like to debug my program
> penetrating ROOT code - it is not so bad idea :)
> 
> Some other useful information:
> 
> lx1/chitov % uname -a
> Linux lx1.lal.in2p3.fr 2.2.18 #2 SMP Tue Mar 13 17:06:00 CET 2001 i686
> unknown
> 
> lx1/chitov % g++ -v
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
> 
> gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
> 
> My config file:
> lx1/chitov % more ./myconfig
> #!/usr/bin/sh -x
> 
> ./configure linux --prefix=/exp/nemo/chitov/root \
>                                       --etcdir=$ROOTSYS/etc \
>                                                 --libdir=$ROOTSYS/lib \
> 
> --incdir=$ROOTSYS/include \
>                                                 --datadir=$ROOTSYS/share
> \
> 
> --docdir=$ROOTSYS/share/doc \
>                                                 --build=debug\
> 
> --with-ttf-fontdir=$ROOTSYS/ttf/fonts \
>                                                 --enable-rpath
> --enable-soversion
> 
> Best wishes,
> Shitov Yuriy.



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