The question is: How to compile a program for two architectures at once, code for c ++, so that there would be one exe and run on both x64 and x32, now I use windows 10 x64 and the MinGW compiler. For example, took freeglut. I can show the code, but it is not so important as it is not the code itself that is interested in the compilation process.
- oneAs far as I know, the PE format can be either under x32 or under x64, but not under both at the same time. Both here and there x32 is started. Or do one build under x32 or have to make a launcher, which will determine the architecture and run the correct version of the main exe. - German Borisov
- oneSo do the sysinternals tools. exe alone, but at the start of the main one, a temporary copy of the required architecture is created and launched. - crea7or
|