Is C++ platform dependent?

后端 未结 7 2061
傲寒
傲寒 2020-12-04 16:33

Can we say that C++ is platform dependent?

I know that C++ uses compiler, and those compiler are different for different platforms. When we compile C++ code using co

相关标签:
7条回答
  • 2020-12-04 17:37

    C++ is not platform dependent - in fact there is a standard that all vendors try to implement. What you mean is that the EXECUTABLE that is produced is platform dependent. That is because each OS has a different definition and requirements of what constitutes a valid executable file. Also, each OS has a different set of APIs used for implementing core services that need to be linked against by the C++ linker and compiler. But this has nothing to do with C++ as a language.

    0 讨论(0)
提交回复
热议问题