Re: [ROOT] Unable to link libraries to gui

From: Jiri Masik (Jiri.Masik@cern.ch)
Date: Wed Aug 22 2001 - 20:11:43 MEST


Hi Christian,

I tried to compile your code - it links and runs without a problem.
I have a recent CVS tree of Root and g++-3.0.1 on Debian/Linux/ppc.
I put the sources back to
http://darbujan.fzu.cz/~masik/root/gui.tgz

but I don't think I've changed anything apart from the local
customization. 
cheers

	Jiri



masik@pceple53:~/prog/root_jm/christian$ make -f Makefile4A
g++-3.0 -Wall -fPIC -fsigned-char -I/data/masik/root-v3.02.opt.gcc3/include --no-rtti -fno-exceptions -c MyClassA.cxx
Generating dictionary MyClassADict...
g++-3.0 -Wall -fPIC -fsigned-char -I/data/masik/root-v3.02.opt.gcc3/include --no-rtti -fno-exceptions -c MyClassADict.cxx
g++ -shared  MyClassA.o MyClassADict.o -o libMyClassA.so
masik@pceple53:~/prog/root_jm/christian$ make -f Makefile4A B
g++-3.0 -Wall -fPIC -fsigned-char -I/data/masik/root-v3.02.opt.gcc3/include -c MyClassB.cxx
Generating dictionary MyClassBDict...
g++-3.0 -Wall -fPIC -fsigned-char -I/data/masik/root-v3.02.opt.gcc3/include -c MyClassBDict.cxx
g++ -shared  MyClassB.o MyClassBDict.o -o libMyClassB.so
masik@pceple53:~/prog/root_jm/christian$ make -f Makefile4B 
g++-3.0 -Wall -fPIC -fsigned-char -I/data/masik/root-v3.02.opt.gcc3/include -c Mygui.cxx
Generating dictionary MyguiDict.cxx...
class TMyFrame in Mygui.h line 37 original base of virtual func
g++-3.0 -Wall -fPIC -fsigned-char -I/data/masik/root-v3.02.opt.gcc3/include -c MyguiDict.cxx
g++-3.0   -o Mygui   Mygui.o MyguiDict.o \
 -L. -lMyClassB -lMyClassA  -L/data/masik/root-v3.02.opt.gcc3/lib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lGui -lnsl -lm -ldl -rdynamic  
Mygui done
masik@pceple53:~/prog/root_jm/christian$ ./Mygui 



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:58 MET