Skip to content

Commit

Permalink
docs: Add compiler flags in example (#22)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
matthewfeickert authored Jan 6, 2023
1 parent b13791e commit c70139a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ You can either use the image as "`PYTHIA` as a service", as demoed here with the
```
docker run \
--rm \
--user $(id -u $USER):$(id -g) \
--user $(id -u $USER):$(id -g $USER) \
--volume $PWD:/work \
matthewfeickert/pythia-python:pythia8.308 \
'python tests/main01.py > main01_out_py.txt'
Expand All @@ -44,10 +44,10 @@ or the original C++
```
docker run \
--rm \
--user $(id -u $USER):$(id -g) \
--user $(id -u $USER):$(id -g $USER) \
--volume $PWD:/work \
matthewfeickert/pythia-python:pythia8.308 \
'g++ tests/main01.cc -o tests/main01 $(pythia8-config --ldflags); ./tests/main01 > main01_out_cpp.txt'
'g++ tests/main01.cc -pthread -o tests/main01 $(pythia8-config --cxxflags --ldflags); ./tests/main01 > main01_out_cpp.txt'
```

or you can run interactively
Expand Down

0 comments on commit c70139a

Please sign in to comment.