Did you know ... Search Documentation:
SWI-Prolog C++ interfaces

SWI-Prolog comes bundled with SWI-cpp.h and as of version 8.5.18 with SWI-cpp2.h.