Link Problem ?

From: sven schagen (h31@nikhef.nl)
Date: Tue May 12 1998 - 11:21:40 MEST


Hi All,

In an effort to create my owm, ROOT-based executables I seem to miss an
important detail of some sort. I try to do this on an SGI machine (IRIX
6.4 with a 32 bit flag on) with a gnu compiler.
I can compile my program (which is included as an attachment) but when I
try to run it it gives a Segmentation Violation. 
It seems that this violation is related to output that is written to a
canvas.
Evidently I must be missing some init-function or perhaps a library, but
I can't really tell which it should be then.
What am I missing ?

Thanx,

Sven Schagen

PS: I also included the Makefile that I use to compile it.
-- 
**********************************************************************

Sven E.S. Schagen			Zeus Analysis
Bladmoshof 6 				NIKHEF Amsterdam
1441 LN Purmerend			Kruislaan 409
The Netherlands				1098 SJ Amsterdam
(0)299 436995				The Netherlands
					(0)20 592 5025

Student of Physics,		Don't turn your back on your friend,
University of Amsterdam		no matter what!
(schagen@beta.uva.nl)			-Call Upon My Brothers
						Ignite

**********************************************************************


ObjSuf = o SrcSuf = C ExeSuf = DllSuf = so EVENTLIB = $(EVENTO) OutPutOpt = -o ROOTLIBS = -L$(ROOTSYS)/lib -lBase -lCint -lClib -lCont -lFunc -lGraf \ -lGraf3d -lHist -lHtml -lMeta -lMinuit -lNet -lPostscript \ -lProof -lTree -lUnix -lZip -lRint ROOTGLIBS = -lGpad -lGX11 -lMotif -lWidgets -lX3d # SGI with GCC CXX = /usr/gnu/bin/g++ CXXFLAGS = -fsigned-char -fPIC -w -I$(ROOTSYS)/include LD = /usr/gnu/bin/g++ LDFLAGS = -g -Wl,-u,__builtin_new -Wl,-u,__builtin_delete -Wl,-u,__nw__FUiPv SOFLAGS = -Wl,-soname,libEvent.so -shared LIBS = $(ROOTLIBS) -lg++ -lm -ldl GLIBS = $(ROOTLIBS) $(ROOTGLIBS) $(ROOTLIBS)-lXm -lXt -lX11 -lg++ -lm -lPW -ldl #------------------------------------------------------------------------------ OBJS = CalcEff.o mcTest.o test: $(OBJS) $(LD) $(LDFLAGS) $(OBJS) $(LIBS) $(GLIBS) -o testje CalcEff.o: CalcEff.C $(CXX) $(CXXFLAGS) -c CalcEff.C -o CalcEff.o @echo "CalcEff done" mcTest.o: mcTest.C CalcEff.h $(CXX) $(CXXFLAGS) -c mcTest.C -o mcTest.o @echo "mcTest done"



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:32 MET