Supported Platforms | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 3

Supported Platforms

I am talking about the exe file which we get after compilation of our C++ code . I had written a code in Turbo C++ IDE and then compiled and took the exe file to my school . My school has 2 computer labs one with all the systems having Windows 7 32 bit the exe file property ran in them . In the other lab the systems have Windows 7 64 bit when I tried to run the exe file it showed an error file not supported. But using dos box i were able to run it . can anyone of you please tell why is that so ?

25th Mar 2017, 3:29 PM
Sahaj Bamba
Sahaj Bamba - avatar
5 ответов
+ 3
Does it depend on source code, compiler or something else?
25th Mar 2017, 3:30 PM
Sahaj Bamba
Sahaj Bamba - avatar
+ 2
For different types OS separate version of program are need as structure of instruction set changes for each type of OS, which may differ in terms of products such as Windows. Mac, Linux ) or bits leve (32 bits or 64 bits)
25th Mar 2017, 5:27 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar
+ 2
@Devender What can I do to make sure that my exe file run in every OS in which i want it to without any use of some external software ? Do I need to use different compilers or different IDEs or does it need different code ? Isn't there some IDE or compiler which can produce exe file for all the OS s atleast for all windows OSs .
25th Mar 2017, 5:32 PM
Sahaj Bamba
Sahaj Bamba - avatar
+ 2
Certain compilers have configuration setting that can be experimented to get the desired result
25th Mar 2017, 5:50 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar
+ 1
Yes you may need cross platform compilers to help you out.
25th Mar 2017, 5:48 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar