mimalloc: Building with mingw: os.c build failure
Maybe my question doesn’t belong in an issue, in which case I really apologize.
I would like to build the mimalloc library on Windows, without Visual Studio. I use GCC and Make to build my projects.
I have configured the CMake (where I so specified the compilers to use) to compile according to these preferences and it seems to work fine.
However, I have a compilation problem when building os.c, as shown in the given picture, PROCESSOR_NUMBER (and the functions that follow) don’t seem to be found or exist. Nevertheless, some fixes to the MinGW version seem to have already been made 🤔
I’m not used to using Windows headers, and I haven’t found anything on the Internet that can help me overcome this problem of build. I don’t know where to find what is missing. What should I change in my configurations? Or don’t I have all the necessary files?
I would really like to test mimalloc, which looks really well designed, thanks 😃
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20
Commits related to this issue
- fix link errors on MinGW64, issue https://github.com/microsoft/mimalloc/issues/217 mimalloc-test-stress link was failing with MinGW-W64 / gcc version 8.1.0: mkdir -p build_mingw_gcc/release cd build_... — committed to jonty-dawson/mimalloc by jonty-dawson 4 years ago
- fix usused param 'numa_mode' warning on MinGW64, issue https://github.com/microsoft/mimalloc/issues/217 with MinGW-W64 / gcc version 8.1.0 / Win10 Pro: mkdir -p build_mingw_gcc/release && cd build_mi... — committed to jonty-dawson/mimalloc by jonty-dawson 4 years ago
- fix mingw compilation by using export definitions (issue #217) — committed to microsoft/mimalloc by daanx 4 years ago
- fix mingw compilation for numa awareness (issue #217) — committed to microsoft/mimalloc by daanx 4 years ago
- further fixes to compile on mingw without warnings (issue #217) — committed to microsoft/mimalloc by daanx 4 years ago
Great! Thanks for your help in fixing this issue.