Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS compilation still broken #89

Open
MbBrainz opened this issue Nov 19, 2022 · 1 comment
Open

MacOS compilation still broken #89

MbBrainz opened this issue Nov 19, 2022 · 1 comment

Comments

@MbBrainz
Copy link

# FIXME: the compilation on Mac OS seems broken at this moment

@Veenxz
Copy link

Veenxz commented Nov 23, 2022

You can change the line to set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -mcpu=apple-m1 -std=c++11")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -march=native -std=c++11")

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants