I ran into a couple of problems while trying to use this with my program: My compiler (MinGW-w64 GCC 8.2.0) complained about not recognising %lld format specifiers. The compiler also warned about non-guarding 'if's. I ignored it at first, but then I noticed my program crashed when it ran stb_leakcheck_dumpmem. Making the 'if's guard fixed that. After that, the lib worked until I changed how it was included: instead of tacking a debug-only #include at the start of every file, I switched to using GCC's '-include' option to force-include it in every file. But doing that gave me errors about size_t not being defined. And after fixing that, I instead got errors about the #defines messing with stdlib.h. So to fix those I made the declaration-only part of the header include stdlib.h.master
parent
e6afb9cbae
commit
80b89cf6c8
1 changed files with 7 additions and 1 deletions
Loading…
Reference in New Issue