I have swi-prolog version 9.0.4 on my ubuntu system, but when I tried to include #include <SWI-cpp2.cpp> in my program it says
Your version is too old. Probably best is to install the PPA