Hi,
I’m ACLiC’ing a very simple object and it fails to load and I’m not sure what I’m missing.
root [33] .L ../src/CustomEvent.cxx++
Info in <ACLiC>: unmodified script has already been compiled and loaded
Info in <ACLiC>: it will be regenerated and reloaded!
Info in <TUnixSystem::ACLiC>: creating shared library /home/gwatts/testarea/15.0.0.2/mytests/RootIOTest/run/./../src/CustomEvent_cxx.so
Load Error: Failed to load Dynamic link library /home/gwatts/testarea/15.0.0.2/mytests/RootIOTest/run/./../src/CustomEvent_cxx.so
/usr/lib/gcc/i386-unknown-linux/3.4.4/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
*** Interpreter error recovered ***
My code is very simple:
[code]#ifndef Event_H
#define Event_H
///
/// Event.h - main holder object for ROOT event
///
#include “TObject.h”
class CustomEvent : public TObject
{
public:
int nJets;
~CustomEvent();
private:
ClassDef(CustomEvent,1);
};
#endif
[/code]
and the cxx file:
[code]#include “RootIOTest/CustomEvent.h”
ClassImp(CustomEvent)
///
/// Event
///
CustomEvent::~CustomEvent()
{
}
#if defined(MAKECINT)
#pragma link C++ class CustomEvent;
#endif
[/code]
I’m using root 5.22/00a.
Have I missed something obvious?