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 🤔

img

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

Most upvoted comments

Great! Thanks for your help in fixing this issue.