HemoCell icon indicating copy to clipboard operation
HemoCell copied to clipboard

MacOS compilation still broken

Open MbBrainz opened this issue 3 years ago • 1 comments

https://github.com/UvaCsl/HemoCell/blob/3189621a2118152addefd3a6f5852536c3fd2d14/CMakeLists.txt#L50

MbBrainz avatar Nov 19 '22 13:11 MbBrainz

You can change the line to set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -mcpu=apple-m1 -std=c++11") https://github.com/UvaCsl/HemoCell/blob/3189621a2118152addefd3a6f5852536c3fd2d14/CMakeLists.txt#L126

But I got new errors, I don't know why:

HemoCell/helper/array.h:103:42: error: no member named '_M_elems' in 'hemo::Array<double, 3>'
      std::copy(c.begin(),c.end(), this->_M_elems);
HemoCell/HemoCell/core/hemoCellParticle.h:110:10: note: in instantiation of member function 'hemo::Array<double, 3>::operator=' requested here
    sv.v = {0.,0.,0.};
         ^
1393 warnings and 1 error generated.
make[2]: *** [CMakeFiles/hemocell.dir/core/hemoCell.cpp.o] Error 1
make[1]: *** [CMakeFiles/hemocell.dir/all] Error 2
make: *** [all] Error 2

Veenxz avatar Nov 23 '22 12:11 Veenxz