Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

OSD_MAllocHook.cxx fails to compile with "atol not found error"

Alex G.'s picture

This happens with gcc 4.6.0 for me.
atol is defined in , which is not included in OSD_MAllocHook.cxx or its headers. This small patch makes that inclusion.

diff -upr OpenCASCADE-6.5.1.orig/ros/src/OSD/OSD_MAllocHook.cxx OpenCASCADE-6.5.1/ros/src/OSD/OSD_MAllocHook.cxx
--- OpenCASCADE-6.5.1.orig/ros/src/OSD/OSD_MAllocHook.cxx 2011-05-19 06:24:52.000000000 -0500
+++ OpenCASCADE-6.5.1/ros/src/OSD/OSD_MAllocHook.cxx 2011-09-06 20:19:40.087027436 -0500
@@ -4,6 +4,7 @@
// Copyright: Open CASCADE S.A.S. 2011


#ifndef WNT
#if !defined __STDC_LIMIT_MACROS

Richard Shaw's picture

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!