You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VS2022 is complaining that mi_atomic_exchange_ptr_relaxed is not defined when _MSC_VER is defined. Looking at the definitions in atomic.h it seems that that is the case. Note that I am doing my own build without cmake but even so I can't see how mimalloc could ever compile...
1>segment-map.c 1>C:\james_projects\GitHub\jrf\libs\mimalloc\src\segment-map.c(131,30): warning C4013: 'mi_atomic_exchange_ptr_relaxed' undefined; assuming extern returning int 1>C:\james_projects\GitHub\jrf\libs\mimalloc\src\segment-map.c(131,61): error C2275: 'mi_segmap_part_t': expected an expression instead of a type 1>C:\james_projects\GitHub\jrf\libs\mimalloc\src\segment-map.c(131,23): warning C4047: 'initializing': 'mi_segmap_part_t *' differs in levels of indirection from 'int'
Thanks :)
The text was updated successfully, but these errors were encountered:
Yikes -- this is because in the IDE and cmake we always build in C++ mode with msvc. I have various special wrappers in atomic.h to enable C compilation on msvc as well but forgot the latest variants :-( I will update this and push a fresh release later this week (in case more issues pop up in the mean time).
VS2022 is complaining that mi_atomic_exchange_ptr_relaxed is not defined when _MSC_VER is defined. Looking at the definitions in atomic.h it seems that that is the case. Note that I am doing my own build without cmake but even so I can't see how mimalloc could ever compile...
1>segment-map.c 1>C:\james_projects\GitHub\jrf\libs\mimalloc\src\segment-map.c(131,30): warning C4013: 'mi_atomic_exchange_ptr_relaxed' undefined; assuming extern returning int 1>C:\james_projects\GitHub\jrf\libs\mimalloc\src\segment-map.c(131,61): error C2275: 'mi_segmap_part_t': expected an expression instead of a type 1>C:\james_projects\GitHub\jrf\libs\mimalloc\src\segment-map.c(131,23): warning C4047: 'initializing': 'mi_segmap_part_t *' differs in levels of indirection from 'int'
Thanks :)
The text was updated successfully, but these errors were encountered: