Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
peremato committed Nov 7, 2024
1 parent 4bafcd9 commit e106752
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/main296.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ using PYTHIA8
# Let's start by building the shared library
prefix = ENV["PYTHIA8"]
Base.run(`c++ -O2 -shared -fPIC -std=c++11 -I$prefix/include -Wl,-rpath,$prefix/lib -L$prefix/lib -lpythia8 -o main296Lib.so $(@__DIR__)/main296Lib.cc`)
Base.run(`ls -l main296Lib.so`)
Base.run(`nm main296Lib.so | grep PythiaCrossSection`)
Base.run(`ldd main296Lib.so`)

# The shared library is now built, and we can define the PythiaCrossSection type
const lib = "./main296Lib.so"
Expand Down

0 comments on commit e106752

Please sign in to comment.