Re: Compiling a root macro like a c++ program

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Tue, 10 Apr 2007 11:15:16 +0200


Hi John,

John Zoidberg wrote:
> I would like to make programs using ROOT classes, but compiled with the
> gcc/g++ compilers instead of this weird ACLiC/CINT system.
> I tried to understand the Makefile of the "test" folder with all the
> example programs, but it looks completely obscure to me.

See, that's the huge advantage of the "weird" ACLiC: no need to get any Makefiles right. Btw, why do you find it weird? Adding a "+" at the end of a file name to be loaded is easy, right? You can see what ACLiC does by setting gDebug=7: it just calls the compiler and linker itself.

> What I don't understand is that it does get compiled, but when I execute
> it, it displays nothing (whereas it does when I compile it with a simple
> "g++ test.cxx").

Are you sure you don't pick up /usr/bin/test? Axel. Received on Tue Apr 10 2007 - 11:15:11 CEST

This archive was generated by hypermail 2.2.0 : Tue Apr 10 2007 - 23:50:01 CEST