[Gate-users] CT example

Marc Chamberland MarcChamberland at cmail.carleton.ca
Tue Aug 20 23:25:15 CEST 2013


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
> 




More information about the Gate-users mailing list