Does Visual C++ runtime imply Windows platform? I mean if I write a program that only directly uses functions specific to VC++ runtime and doesn’t directly call Windows API functions can it be recompiled and run on any OS except Windows? I don’t mean on Windows system emulator, I mean a ready implementation of VC++ runtime for some other OS.
Share
The Visual C++ runtime contains the standard C++ library and platform specific auxiliary functions.
The Windows API is part of the Windows SDK, and is not included in the Visual C++ runtime.
When you compile a C++ program on a different platform you will use that platform’s C++ library implementation.
As long as you only use standard C++ functions and classes, yes.
The runtime itself is only available on Windows, as the implementation is very platform specific. As I have mentioned above, you only get source level compatibility and only if you don’t use MS specific functions.