Welcome to LQ, tabris2015:
I've edited your post and the thread title using a translate tool. If the result is incompatible with your wishes, pleased edit your post to correct. As cited by hydrurga, this is an English only forum, as noted in the
LQ Rules and Guidelines.
C++ projects "can" be compatible with different versions of a distribution, as well as other distributions.
Are you asking this because you need to compile an application? Or because you need to construct an application in C++ and wish to make it backward compatible. If that second option, I'd suggest constructing and compiling the application on the older system first, and then getting it to compile on the newer system.