`-o` switch will produce executable without extension
opened this issue · comments
For example, I'm on Windows and since I'm not cross compiling, I expect the executable to have the extension .exe
. What it really produce is a file without extension. If I rename that file to include the .exe
extension then it will run normally. Currently, I have to include the .exe
extension in the executable name when using the -o
switch.
I've not seen a compiler that would append .exe for you in a scenario like this. This is by design
I've not seen a compiler that would append .exe for you in a scenario like this. This is by design
At least GCC and Clang. On Windows, if you are not cross compile for other platforms, the executable will have the .exe
extension by default.