On May 19, 2012, at 2:16 PM, Jonathan Wakely wrote: > It's better to make the header self-sufficient: > > #ifdef __cplusplus > extern "C" { > #endif > void * domp_malloc(size_t); > #ifdef __cplusplus > extern "C" { > #endif Thank you--I'll do that. It says here http://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html that "__cplusplus" is a standard symbol, so it should work even with other compilers. Amittai Aviram