简体   繁体   中英

C++ qt programming, windows and linux

If I write a program in C++ using Qt on windows, can I run the program on Linux (not run .exe, but use the source code)?

PS I don't mean using wine

If you use just the Qt framework, without any platform specific code, you will be able to compile that code on each platform. You will not, for example, be able to run the compiled binary from one platform directly on another, such as the Windows executable on Linux.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM