Skip to content

Commit 08d2186

Browse files
djboersmatbaudier
authored andcommitted
correct root flags in AnalyzeCT.cpp compilation
The order in which the flags appear after g++ matters. The "compile" flags should go before the source file, the linking flags should go after, so you cannot combine them. Maybe the combined blurb was working with older versions of g++ and/or ROOT, but with g++ 9 and ROOT 6 it seems necessary to keep the compile flags and linking flags separate.
1 parent dd0d262 commit 08d2186

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imaging/CT/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ There are 2 runs. Each run performs during 90 seconds. The phantom turns around
1313

1414
Compile the C++ file (in the classic directory) with the following command:
1515

16-
`g++ -O3 `root-config -cflags -glibs` AnalyzeCT.cpp -o AnalyzeCT`
16+
```g++ -O3 `root-config --cflags` AnalyzeCT.cpp `root-config --glibs` -o AnalyzeCT```
1717

1818
**Results**
1919

0 commit comments

Comments
 (0)