Skip to content

Commit c70139a

Browse files
docs: Add compiler flags in example (#22)
* Add '-pthread' and '$(pythia8-config --cxxflags)' to C++ example in the README to allow for compilation to proceed. * Add missing '$USER' to 'id -g' to make it explicit which user info is used.
1 parent b13791e commit c70139a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ You can either use the image as "`PYTHIA` as a service", as demoed here with the
3333
```
3434
docker run \
3535
--rm \
36-
--user $(id -u $USER):$(id -g) \
36+
--user $(id -u $USER):$(id -g $USER) \
3737
--volume $PWD:/work \
3838
matthewfeickert/pythia-python:pythia8.308 \
3939
'python tests/main01.py > main01_out_py.txt'
@@ -44,10 +44,10 @@ or the original C++
4444
```
4545
docker run \
4646
--rm \
47-
--user $(id -u $USER):$(id -g) \
47+
--user $(id -u $USER):$(id -g $USER) \
4848
--volume $PWD:/work \
4949
matthewfeickert/pythia-python:pythia8.308 \
50-
'g++ tests/main01.cc -o tests/main01 $(pythia8-config --ldflags); ./tests/main01 > main01_out_cpp.txt'
50+
'g++ tests/main01.cc -pthread -o tests/main01 $(pythia8-config --cxxflags --ldflags); ./tests/main01 > main01_out_cpp.txt'
5151
```
5252

5353
or you can run interactively

0 commit comments

Comments
 (0)