MINGW-packages: malloc.h:80:10: error: 'mm_malloc.h' file not found

cannot find mm_malloc.h How to fix this problem?

malloc.h:80:10: error: 'mm_malloc.h' file not found
--
mainwindow_load_save.cpp:1:1: note: in file included from C:\msys64\home\eli\gitee\ssgo\src\mainwindow_load_save.cpp:1:
mainwindow_load_save.cpp:1:10: note: in file included from C:\msys64\home\eli\gitee\ssgo\src\mainwindow_load_save.cpp:1:
mainwindow.h:14:10: note: in file included from C:\msys64\home\eli\gitee\ssgo\src\mainwindow.h:14:
iostream:39:10: note: in file included from C:\msys64\mingw64\include\c++\10.2.0\iostream:39:
ostream:38:10: note: in file included from C:\msys64\mingw64\include\c++\10.2.0\ostream:38:
ios:42:10: note: in file included from C:\msys64\mingw64\include\c++\10.2.0\ios:42:
ios_base.h:41:10: note: in file included from C:\msys64\mingw64\include\c++\10.2.0\bits\ios_base.h:41:
...
string_conversions.h:41:10: note: in file included from C:\msys64\mingw64\include\c++\10.2.0\ext\string_conversions.h:41:
cstdlib:75:15: note: in file included from C:\msys64\mingw64\include\c++\10.2.0\cstdlib:75:
stdlib.h:760:10: note: in file included from C:\msys64\mingw64\x86_64-w64-mingw32\include\stdlib.h:760:

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 1
  • Comments: 26 (6 by maintainers)

Most upvoted comments

I see the file at /mingw64/lib/gcc/x86_64-w64-mingw32/10.3.0/include/mm_malloc.h, perhaps your projects are actually using the right compiler/compiler flags? not sure what else could cause it