[Gate-users] CT example

Alejandro Coloma alejandrocolomae at gmail.com
Sat Aug 24 03:19:44 CEST 2013


Thank you Marc! you solved my problem. For the users who has the same
problem. Do not copy the command from the PDF attached in the example_CT
folder. Just type (from the classical directory):
g++ -O3 `root-config --cflags --glibs` AnalyzeCT.cpp -o AnalyzeCT
and then type:
./AnalyzeCT benchmarkCT.root




2013/8/20 Marc Chamberland <MarcChamberland at cmail.carleton.ca>

> Actually, the following worked on my system:
>
> g++ -O3 `root-config --cflags --glibs` AnalyzeCT.cpp -o AnalyzeCT
>
> You may have been using the wrong delimiting characters around
> root-config. On my system, I need to use the accent ` and not the
> apostrophe '.
>
> Marc
>
>
>
> __________________________
>
> Marc Chamberland, MSc
> PhD candidate
> Department of Physics
> Carleton University
> Ottawa (ON)
>
> On 2013-08-20, at 5:21 PM, Marc Chamberland <
> marcchamberland at cmail.carleton.ca>
>  wrote:
>
> > This is not an elegant solution, but you could just run the following on
> the command line:
> >
> > root-config -cflags -glibs
> >
> > Then, type:
> >
> > g++ -O3 [INSERT THE OUTPUT FROM ABOVE HERE] AnalyzeCT.cpp -o AnalyzeCT
> >
> >
> >
> > Marc
> >
> >
> >
> > __________________________
> >
> > Marc Chamberland, MSc
> > PhD candidate
> > Department of Physics
> > Carleton University
> > Ottawa (ON)
> >
> > On 2013-08-20, at 4:11 PM, Alejandro Coloma <alejandrocolomae at gmail.com>
> > wrote:
> >
> >> Hi Gate Users
> >>
> >> I can't compile the file Analyze.cpp I went to the directory
> >> /gate_v6.2/examples/example_CT/classic
> >> and typed
> >> g++ -O3 ‘root-config –cflags –glibs‘ AnalyzeCT.cpp -o AnalyzeCT
> >> but i get the error
> >> g++: error: root-config –cflags –glibs: No such file or directory
> >>
> >> I've successfully run several other examples, but this one is important
> for me.
> >> Any help?
> >> Thanks :)
> >>
> >> Alejandro Coloma
> >> EPN- Fisica
> >> Quito Ecuador
> >> _______________________________________________
> >> Gate-users mailing list
> >> Gate-users at lists.opengatecollaboration.org
> >> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
> >
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20130823/9c6e93aa/attachment.html>


More information about the Gate-users mailing list