How to run C++ programs on Mac or Linux?

Hi.
After creating a console program or a GUI C++ program how to run it on Linux and Mac?
Does C++ is a cross-platform language like Java
Java built programs need JVM to run,so what is need to run C++ built programs to run on windows?
The programs can run and work properly in windows without the use of microsoft visual C++ redistribution,
What I mean is that, I installed many programs without the need of microsoft visual C++ redistribution, but why codeblockes need microsoft visual redistribution> i.e what is the use of microsoft visual C++ redistribution in windows?
Recompile the program on other platforms. If the code uses only standard C++, that should succeed.

If the code uses OS-dependent features, then it will not compile.
Thanks buddy
Topic archived. No new replies allowed.