RE: ACLIC in winxp

From: Faine, Valeri <fine_at_bnl.gov>
Date: Thu, 17 Feb 2005 11:29:39 -0500


Hello Olivier,

It does not matter whether ROOT was started under cygwin or by any other means.

The problem is caused by the blank in the file names. ACliC doesn't handle the space within the path properly on either platform. So, it is not "Windows specific". To resolve the issue on either platform one should quote the path before the local shell invocation to compile the macro.

It can be done by ROOT internally, and this can be fixed by used also

 I user can invoke

  gSystem->SetIncludePath("-I\"c:\\Program Files\\ROOT\\include" -I. ");

or

  gSystem->SetIncludePath("-I\"c:/Program Files/ROOT/include" -I. ");

  and it should help



Best regards
                   Valeri


> -----Original Message-----
> From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch]
On
> Behalf Of Olivier Couet
> Sent: Thursday, February 17, 2005 6:09 AM
> To: Balint Radics
> Cc: roottalk_at_pcroot.cern.ch
> Subject: Re: [ROOT] ACLIC in winxp
>
>
> Hi,
>
> I have tried your little example on both linux and XP with root 4.03/02
> and for me it works fine. Are your environment variables ROOTSYS etc ...
> defined correctly ?
> I am not sure if the spaces in the path might be or not a problem. In my
> case I am using ROOT on XP in the cygwin environment and the PATH is
> /home/Administrator/roottest (no spaces).
>
> Cheers, Olivier
>
> On Thu, 17 Feb 2005, Balint Radics wrote:
>
> >
> > Hi,
> >
> > I wrote a code that uses only TFile and TH1F calsses:
> >
> > #include <TFile.h>
> > #include <TH1F.h>
> >
> > void pl(){
> > TFile * f = new TFile("file.root", "recreate");
> > TH1F * h = new TH1F("h","h",100,0,100);
> > for(int i = 0; i < 100; i++){
> > h->SetBinContent(i,i);
> > }
> > f->Write();
> > }
> >
> > I tried to compile it, but I got this error message from ACLIC in CINT:
> >
> > root [0] .L pl.C++
> > Info in <TWinNTSystem::ACLiC>: creating shared library C:\Program
> Files\BNL\ROOT
> > \macros\pl_C.dll
> > Error: rootcint: The input list file C:\Program.in does not exist
> > Error in <ACLiC>: Dictionary generation failed!
> > Info in <ACLiC>: Invoking compiler to check macro's validity
> > 'cl' is not recognized as an internal or external command,
> > operable program or batch file.
> >
> > What's wrong in here? Maybe the " " space in the 'Program Files'
> > directory?
> >
> > Balint
> >
> >
>
> --
> Org: CERN - European Laboratory for Particle Physics.
> Mail: 1211 Geneve 23 - Switzerland Mailbox: J25910
> E-Mail: Olivier.Couet_at_cern.ch Phone: +41 22
7676522
> WWW: http://cern.ch/Olivier.Couet/ Fax: +41 22
7670300 Received on Thu Feb 17 2005 - 17:29:56 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:05 MET