12-16-2022, 05:59 PM
You can't run windows EXEs on Linux or Mac. (Well, perhaps in WINE, but that's kind of like a Windows-in-Linux experience. It's still not a linux executable.) Just like how you can't run 64-bit programs on a 32-bit OS...
_OS$ works just fine. Take for example the difference in the forward and backwards slashes between file paths. As long as you compile with a windows version of cpp, that program is going to want the backslashes that windows uses. If you compile on a linux or mac version, that program is always going to want the forward slash. Even IF you copy that compiled executable over to another OS, it's not going to run unless it's got some sort of Virtual Machine or emulator on it, to work with it in that native format. (Linux subsystem on windows or WINE, for example, or even a full fledged virtual machine.)
_OS$ works just fine. Take for example the difference in the forward and backwards slashes between file paths. As long as you compile with a windows version of cpp, that program is going to want the backslashes that windows uses. If you compile on a linux or mac version, that program is always going to want the forward slash. Even IF you copy that compiled executable over to another OS, it's not going to run unless it's got some sort of Virtual Machine or emulator on it, to work with it in that native format. (Linux subsystem on windows or WINE, for example, or even a full fledged virtual machine.)