[ROOT] execution problem

From: Perrot Luc (perrot@isn.in2p3.fr)
Date: Wed Apr 12 2000 - 19:04:16 MEST


        Hi rooters,

    I have installed the last version of root ( 2.24/02 ) on a PC under
Linux 6.0.
There is no problem for execute the tutorials, there is no problem for
compile programs in the directory test and execute this.

But when i wan execute this very simple program grand_temps.C after
compile with the makefile (Makefile.linux), the response is:

Segmentation fault

All the last verson generated the same problem.

Thanks.

Luc Perrot

----------------------------------------------------------
Luc Perrot   E-mail:perrot@isn.in2p3.fr
ISN 53 avenue des Martyrs 38026 GRENOBLE cedex
Tel: 76-28-40-00 poste 43-14
Fax: 76-28-40-04
----------------------------------------------------------



ObjSuf        = o
SrcSuf        = C
ExeSuf        =
DllSuf        = so
OutPutOpt     = -o

ROOTCFLAGS    = $(shell root-config --cflags)
ROOTLIBS      = $(shell root-config --libs)
ROOTGLIBS     = $(shell root-config --glibs)

# Linux with egcs
CXX           = g++
CXXFLAGS      = -O -Wall -fPIC
LD            = g++
LDFLAGS       = -g
SOFLAGS       = -shared


CXXFLAGS     += $(ROOTCFLAGS)
LIBS          = $(ROOTLIBS)
GLIBS         = $(ROOTGLIBS)

#------------------------------------------------------------------------------

HWORLDO       = grand_temps.$(ObjSuf)
HWORLDS       = grand_temps.$(SrcSuf)
HWORLD        = grand_temps$(ExeSuf)

OBJS          = $(HWORLDO)

PROGRAMS      = $(HWORLD)

all:            $(PROGRAMS)

$(HWORLD):      $(HWORLDO)
		$(LD) $(LDFLAGS) $(HWORLDO) $(LIBS) $(OutPutOpt) $(HWORLD)
		@echo "$(HWORLD) done"

clean:
		@rm -f $(OBJS) *Dict.* core

.SUFFIXES: .$(SrcSuf)

###

.$(SrcSuf).$(ObjSuf):
	$(CXX) $(CXXFLAGS) -c $<


#include	<iostream.h>
main()
{
	cout<<"Hello"<<endl;
}



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:23 MET