I found the examples very instructive.
However, as someone who knows almost nothing besides Python (shame on me!), it is unclear how to compile/test the examples. Having installed openpmd-api (from source+cmake) in /usr/local/, my naive attempt was:
g++ -I/usr/local/include/ -L/user/local/lib/ -lopenPMD 2_read_serial.cpp
Could you add the correct command in the documentation?