OSD_MAllocHook.cxx fails to compile with "atol not found error"
OSD_MAllocHook.cxx fails to compile with "atol not found error"
Alex G.
2011/09/07 04:05
This happens with gcc 4.6.0 for me.
atol is defined in <stdlib.h>, which is not included in OSD_MAllocHook.cxx or its headers. This small patch makes that inclusion.
Thanks! I ran across the same problem but I had tried adding the include in the .hxx instead of cxx... Maybe it's time for me to take a C programming class!