[csw-maintainers] cstdlib vs stdlib.h in Sun Studio 11

Maciej (Matchek) Blizinski maciej at opencsw.org
Thu Mar 11 09:21:38 CET 2010


I've had a problem while compiling poppler: the #include <cstdlib>
line was present, but functions such as malloc() were missing.  The
compiler was CC, not cc.  Changing the include line to #include
<stdlib.h> allowed to compile poppler.

...but #include <cstdlib> is the C++ standard, isn't it?  Why is Sun
Studio 11 C++ compiler doing this and how to make it stop?


More information about the maintainers mailing list