OS X Trick: getting some C++ software to compile

There is a bug in /usr/include/gcc/darwin/3.1/g++-v3/cmath that will undo the definition of isnan. To fix it, comment out the line #undef isnan. Update: in Panther, the file to change is /usr/include/gcc/darwin/3.3/c++/cmath.

Also, malloc.h does not exist in OS X. Just touch it in your compilation directory to create a dummy, empty version. Update: Panther seems to have the file.

Jan 24, 2004

compile (/osxtricks)
2004-01-24, 10:43 [edit]


  Login:   Password:   [rss] [cc] [w3] [css]

© M. Vallisneri 2012 — last modified on 2010/01/29

Tantum in modicis, quantum in maximis