Can't ACLiC very simple custom object

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/
Load Error: Failed to load Dynamic link library /home/gwatts/testarea/
/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
int nJets;



and the cxx file:

[code]#include “RootIOTest/CustomEvent.h”


/// Event


#if defined(MAKECINT)
#pragma link C++ class CustomEvent;

I’m using root 5.22/00a.

Have I missed something obvious?

Never mind. Turns out this was an include file problem. Somehow it was failing to pick up that include, but I didn’t see an error that indicated that was the problem. :frowning: Fix the include paths (gSystem->SetIncludePath) and everything works.