title: memalign not defined in Mac OS X?
body: <p>I'm interested if anyone has managed to port <a href="http://sourceforge.net/projects/hcrf/" rel="nofollow">HCRF2</a> to Mac OS X. I get stuck when building a cpp file using <em>malloc.h</em>. Apparently this is a deprecated package and there's not a whole lot out there telling you how to port programs using it. Any help would be greatly appreciated as I am not a C++ man.</p>
  
  <pre><code>[  2%] Building CXX object hCRF/CMakeFiles/hCRF.dir/src/matrixSSE2.cpp.o
  /Volumes/LocalScratchHD/LocalHome/savkov/Software/HCRF2.0b/libs/shared/hCRF/src/matrixSSE2.cpp:9:10: error: 'malloc.h' file not found with &lt;angled&gt; include; use "quotes" instead
  #include &lt;malloc.h&gt;
       ^~~~~~~~~~
       "malloc.h"
  /Volumes/LocalScratchHD/LocalHome/savkov/Software/HCRF2.0b/libs/shared/hCRF/src/matrixSSE2.cpp:89:20: error: use of undeclared identifier 'memalign'
              pData = (double*)memalign(16, size*sizeof(double));
                               ^
  2 errors generated.
  make[2]: *** [hCRF/CMakeFiles/hCRF.dir/src/matrixSSE2.cpp.o] Error 1
  make[1]: *** [hCRF/CMakeFiles/hCRF.dir/all] Error 2
  make: *** [all] Error 2
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>I copied malloc.h into the source folder and things went a bit further. Now I get another error:</p>
  
  <pre><code>/.../HCRF2.0b/libs/shared/hCRF/src/matrixSSE2.cpp: In member function 'void Matrix&lt;elType&gt;::create(int, int, elType) [with elType = double]':
  /.../HCRF2.0b/libs/shared/hCRF/src/matrixSSE2.cpp:89:52: error: 'memalign' was not declared in this scope
  </code></pre>