Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
 

Error in OSD_MAllocHook.cxx during compilation

Error in OSD_MAllocHook.cxx during compilation
Engelhardt 2011/06/16 18:27
Hello,

I would like to install OpenCascade on my System (Ubuntu 10.10). I downloaded the tar.gz archive, ./configure with the flags mentioned in the README.txt exited normally, but during the compilation with make I get the following errors:

../../../src/OSD/OSD_MAllocHook.cxx:283: error: 'atol' was not declared in this scope
../../../src/OSD/OSD_MAllocHook.cxx:346: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:346: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:346: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:360: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:360: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:360: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx: In member function 'Standard_Boolean OSD_MAllocHook::CollectBySize::MakeReport(const char*)':
../../../src/OSD/OSD_MAllocHook.cxx:483: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:483: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:483: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:492: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:492: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:492: warning: unknown conversion type character 'I' in format

Does anybody know this error? Any hints how to solve it?

Thanks in advance for your help!

Greetings
Chris
axw 2011/07/08 19:46
hi,
i added the following line
#include <cstdlib>

to the file ros/src/OSD/OSD_MAllocHook.cxx

and at least it went on compiling, i'm not sure if adding this include is a good idea, so do this at your own risk...

axw
Luis Gabriel Ventosa 2011/07/18 07:42
Yes, same problem under Ubuntu 10.10, adding the reference to cstdlib solves compilation problem.
Please anybody confirm if that is the correct solution.
Greetings.
Franz Engel 2011/07/25 22:02
I had the same problem with Ubuntu Lucid, and adding the cstdlib into the .cxx file solved the problem.
 
 
Latest news
  • Open CASCADE Technology 6.8.0 is available for download!
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map