RE: [ROOT] Class compilation

From: Philippe Canal (pcanal@fnal.gov)
Date: Tue May 25 2004 - 18:11:22 MEST


Hi Alberto,

You did not mention what error messages or failures that you have seen.
Any way you are missing a line like:

all: $(POINTSO)

and should have the line

$(POINTSO) : $(POINT0)

and you have more 'EVENT' to change to 'POINT'

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Alberto Pulvirenti
Sent: Tuesday, May 25, 2004 5:21 AM
To: ROOT mailing list
Subject: [ROOT] Class compilation


Dear all,

after that I tried to understand the procedure in the ROOT guid and the
website, then I turned to the ML because I do not manage to understand
how to do this.

My problem is the following. 
I would like to compile a class I created, as a shared library to be
loaded by ROOT.

I have followed the instructions in the ROOT guide at pages 259-260, and
then I turned to step 4 which is simply: "make with the makefile".
But I did not understand how this make file must be written in order to
generate a .so library.

I have tried to adapt the Makefile which is in $ROOTSYS/test, but is
does not work.

I attached it to the email.
For you to understand, the class I have created is called clsPoint.h
(and clsPoint.cxx is the implementation file), and I want only to create
a shared library with the definitions of this class (i will add some
other classes further, when I will manage to have a working makefile). 
The makefile I attached is made after renaming the "Event" class which
appeared in the example with my class.

I hope in your help. Thanks,

Cheers,
	Alberto



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET