On Feb 17, 2009, at 8:48 AM, Prior-Jones, Michael R wrote:
Have I missed something?
Hmmm. We’ve tried to include headers in posix_memalign.cc which work
with all OSs (OSX, Linux, Cygwin, ?MinGW?) for valloc ()). According
to the error the compiler was at line 86, which means that the macro
HAVE_VALLOC was defined, which means that ‘configure’ found the valloc
() function prototype somewhere – but not in the header file(s)
included in posix_memalign.cc thus far.
If you issue (in a Cygwin terminal) “grep -lr valloc /usr/include” do
you get any files listed? If so, what is it / are they? Issuing this
instruction on Ubuntu 8.10 results in:
So hopefully Cygwin uses one of these Linux headers to define the
valloc () function prototype. stdlib.h is already included in
posix_memalign.cc, so it’s probably not in that header. Maybe
malloc.h? We can easily put #if’s around the #include to keep OSX
from barfing. - MLD