C++ is compiled. It takes a user's source files which are combined by a linker to yield an executable program. An executable program is not cross platform; it only works for one hardware (architecture) and OS (linux/mac/windows) pair.