I just ran into the same compilation problem with TDatabasePDG now with ROOT 5.28, however I’m compiling using root-config --libs
Could you explain why this doesn’t pick up the needed library to link to TDatabasePDG ?
This is what I get from root-config --libs:
-L/Applications/root_64/lib -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -pthread -Wl,-rpath,/Applications/root_64/lib -lm -ldl
“root-config --libs” intentionally only list a small sub-set of the ROOT library and included only the most used libraries. Thus for less used library (like libEG) you need to explicitly request them (-lEG).