Indeed, really basic cross-compilation of C programs

I have a (really basic) C program that I can compile with GCC on my mac. There is no need for code, it has fseek s, fread s, fprintf and that it (uses stdlib.h and stdio.h ).

Is there a way for me to compile the win32 binary on my Mac that will work on Windows XP?

I'm looking for a simple (less than 15 minutes) solution, if the answer is "find someone who has Visual Studio," then that's cool :)

+4
source share
1 answer

For cross-compiling, you can use the MinGW port for Mac .

+2
source

Source: https://habr.com/ru/post/1441552/


All Articles