Re: [ROOT] Trivial question about ACLiC

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Thu Jun 21 2001 - 20:38:04 MEST


It is a feature. ACliC calls the C++ compiler so your code must be C++
compliant and that generally also means that the filename extension
is *.C, *.cc, *.cxx but not *.c. Probably we should warn when the file
extension is not one of the supported C++ extensions.


Cheers, Fons.


Frank Simon wrote:
> 
> Hi Rene,
> 
> the void should help, but it's not the only thing: As you can see in
> my last email, ACLIC does not accept all possible file extensions.
> *.c for example causes exactly the error reportet by Gerco. Changing
> the filename to *.C or *.cc helps. Is this a bug?
> 
> Greetings
> 
> Frank
> 
> On Thu, 21 Jun 2001, Rene Brun wrote:
> 
> > Hi Gerco,
> >
> > replace;
> > hello()
> > by
> > void hello()
> >
> > We will fix the problems with teh page numbering. Thanks for reporting this.
> >
> > Rene Brun
> >
> > Gerco Onderwater wrote:
> > >
> > > Hi All,
> > >
> > > I have a question regarding ACLiC, which I just found out about and which
> > > seems to be extremely handy. But I cannot get it to work. Here is the
> > > script I'm trying to use:
> > >
> > > hello()
> > > {
> > >   printf("Hello\n");
> > > }
> > >
> > > and this is the result:
> > >
> > > root [0] .L hello.c+
> > > Creating shared library /home/onderwat/g-2/G2Too/macro/./hello_c.so
> > > rootcint: option -c must come directly after the output file
> > >
> > > and then hello() of course doesn't exist. In the users_guide I read that
> > > "ACLiC will (...) use the compiler and the compiler options that were used
> > > to compile ROOT". So my guess is that these options don't work for me for
> > > some reason. In any case, I don't have control over those options because
> > > I don't compile ROOT myself.
> > >
> > > What should I do to make things work? Presumably the answer is trivial,
> > > but I don't seem to be able to get it.
> > >
> > > I tried ROOT 2.25/03 and 3.01/05 on Linux. Both have the same result.
> > >
> > > Something else: the page numbering of the Users guide v3.1b is limited to
> > > page numbers 150 for even pages and 99 for odd pages (at least even and
> > > odd are correct :). That is rather unhandy when you try to use the index.
> > >
> > > Thanks for helping me out!
> > >
> > > -- Gerco
> > >
> > > Dr. C.J.G. Onderwater
> > > Nuclear Physics Laboratory
> > > 401B Loomis Laboratory of Physics
> > > University of Illinois at Urbana-Champaign
> > > 1110 West Green Street
> > > Urbana, IL 61801-3080
> > > Phone : (217) 244-7363
> > > Fax   : (217) 333-1215
> > > E-mail: onderwat@uiuc.edu
> >

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:50 MET