<div dir="ltr"><div><div>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):<br><span style="font-family:courier new,monospace">
g++ -O3 `root-config --cflags --glibs` AnalyzeCT.cpp -o AnalyzeCT</span><br></div>and then type:<br></div><span style="font-family:courier new,monospace">./AnalyzeCT benchmarkCT.root</span><br><div class="gmail_extra"><br>
<br><br><br><div class="gmail_quote">2013/8/20 Marc Chamberland <span dir="ltr"><<a href="mailto:MarcChamberland@cmail.carleton.ca" target="_blank">MarcChamberland@cmail.carleton.ca</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Actually, the following worked on my system:<br>
<br>
g++ -O3 `root-config --cflags --glibs` AnalyzeCT.cpp -o AnalyzeCT<br>
<br>
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 '.<br>
<div class="im"><br>
Marc<br>
<br>
<br>
<br>
__________________________<br>
<br>
Marc Chamberland, MSc<br>
PhD candidate<br>
Department of Physics<br>
Carleton University<br>
Ottawa (ON)<br>
<br>
</div>On 2013-08-20, at 5:21 PM, Marc Chamberland <<a href="mailto:marcchamberland@cmail.carleton.ca">marcchamberland@cmail.carleton.ca</a>><br>
<div class="HOEnZb"><div class="h5"> wrote:<br>
<br>
> This is not an elegant solution, but you could just run the following on the command line:<br>
><br>
> root-config -cflags -glibs<br>
><br>
> Then, type:<br>
><br>
> g++ -O3 [INSERT THE OUTPUT FROM ABOVE HERE] AnalyzeCT.cpp -o AnalyzeCT<br>
><br>
><br>
><br>
> Marc<br>
><br>
><br>
><br>
> __________________________<br>
><br>
> Marc Chamberland, MSc<br>
> PhD candidate<br>
> Department of Physics<br>
> Carleton University<br>
> Ottawa (ON)<br>
><br>
> On 2013-08-20, at 4:11 PM, Alejandro Coloma <<a href="mailto:alejandrocolomae@gmail.com">alejandrocolomae@gmail.com</a>><br>
> wrote:<br>
><br>
>> Hi Gate Users<br>
>><br>
>> I can't compile the file Analyze.cpp I went to the directory<br>
>> /gate_v6.2/examples/example_CT/classic<br>
>> and typed<br>
>> g++ -O3 ‘root-config –cflags –glibs‘ AnalyzeCT.cpp -o AnalyzeCT<br>
>> but i get the error<br>
>> g++: error: root-config –cflags –glibs: No such file or directory<br>
>><br>
>> I've successfully run several other examples, but this one is important for me.<br>
>> Any help?<br>
>> Thanks :)<br>
>><br>
>> Alejandro Coloma<br>
>> EPN- Fisica<br>
>> Quito Ecuador<br>
>> _______________________________________________<br>
>> Gate-users mailing list<br>
>> <a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
>> <a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br>
><br>
<br>
<br>
</div></div></blockquote></div><br></div></div>