On 10.01.2021 5:11, Peng Yu wrote:

I see the following files installed by `brew install mingw-w64`. I
don't quite understand what `i686-w64-mingw32` and
`x86_64-w64-mingw32` means. Could anybody let me know?

Welcome to the world of GNU. These are cpu-vendor-os triplets (yes, mingw32 is not an OS, welcome to the club) that identify the toolchain. i686 is 32-bit, x86_64 is 64-bit - that's all you need to now with regards to mingw. A bit more info can be found on the wiki[0], or just by googling.


If I want to compile windows binaries on Mac OS from the following .c
and .cpp files, could anybody let me know what commands I should use?

If you are _this_ inexperienced, consider using a build system. Meson[1] and CMake[2] are all the rage for C/C++ these days. A buildsystem will invoke the toolchain for you, no need to muck around with command lines.

[0]: https://sourceforge.net/p/mingw-w64/wiki2/TypeTriplets/
[1]: https://mesonbuild.com/SimpleStart.html
[2]: https://cmake.org/cmake/help/latest/guide/tutorial/index.html

--
O< ascii ribbon - stop html email! - www.asciiribbon.org

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to