+ 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 ?
5 Respuestas
+ 3
Does it depend on source code, compiler or something else?
+ 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)
+ 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 .
+ 2
Certain compilers have configuration setting that can be experimented to get the desired result
+ 1
Yes you may need cross platform compilers to help you out.