on both Linux, windows and mac,
But in C++, it’s also a cross platform language, but why some api not working on Linux?
C++ compiles into native binary and no its not simply cross platform they make it work with a ton of macros (larger libs) Java compiles to bytecode which works on jvm
Java runs in https://en.wikipedia.org/wiki/Java_virtual_machine. C++ runs natively. Everything in standard C++ runs on all platforms.
C & C++ are portable, meaning you can compile the source code in different systems without any change or some little changes to work. Being portable doesn't mean binary portable or compatible.
Обсуждают сегодня