Are C++ applications cross-platform?

前端 未结 6 1490
北荒
北荒 2020-12-07 15:35

One of the first things I learned as a student was that C++ applications don\'t run on different operating systems. Recently, I read that Qt based C++ applications run every

6条回答
  •  半阙折子戏
    2020-12-07 16:25

    C++ is cross-platform. You can use it to build applications that will run on many different operating systems.

    What is not cross-platform is the compilers that translate C++ into object code. No single compiler, to my knowledge, has all the necessary features so that when you use it to compile a C++ program, it will automatically run on Windows, Linux and Mac OS.

    Qt Creator is integrated with multiple compilers and has build automation. It makes it easy to switch between different setups and target platforms. It provides support for building, running and deploying C++ applications not only for desktop environments but also for mobile devices.

提交回复
热议问题