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

Definitions of min/max macros conflict with stl_algobase.h #17

Open
chchang6 opened this issue Sep 10, 2020 · 0 comments
Open

Definitions of min/max macros conflict with stl_algobase.h #17

chchang6 opened this issue Sep 10, 2020 · 0 comments

Comments

@chchang6
Copy link

  CXX      n-body-methods/gem/gemnoui-calculate_potential.o
In file included from /nopt/nrel/apps/base/2020-05-12/spack/opt/spack/linux-centos7-x86_64/gcc-4.8.5/gcc-8.4.0-xrmnckz436rnkcwooooi2r7n35pojkov/include/c++/8.4.0/bits/char_traits.h:39,
                 from /nopt/nrel/apps/base/2020-05-12/spack/opt/spack/linux-centos7-x86_64/gcc-4.8.5/gcc-8.4.0-xrmnckz436rnkcwooooi2r7n35pojkov/include/c++/8.4.0/ios:40,
                 from /nopt/nrel/apps/base/2020-05-12/spack/opt/spack/linux-centos7-x86_64/gcc-4.8.5/gcc-8.4.0-xrmnckz436rnkcwooooi2r7n35pojkov/include/c++/8.4.0/ostream:38,
                 from /nopt/nrel/apps/base/2020-05-12/spack/opt/spack/linux-centos7-x86_64/gcc-4.8.5/gcc-8.4.0-xrmnckz436rnkcwooooi2r7n35pojkov/include/c++/8.4.0/iostream:39,
                 from ../n-body-methods/gem/calculate_potential.cpp:25:
/nopt/nrel/apps/base/2020-05-12/spack/opt/spack/linux-centos7-x86_64/gcc-4.8.5/gcc-8.4.0-xrmnckz436rnkcwooooi2r7n35pojkov/include/c++/8.4.0/bits/stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2
     min(const _Tp& __a, const _Tp& __b, _Compare __comp)

In n-body-methods/gem/include/calculations.h, if I comment out the definitions, the build will proceed before

  CXXLD    gemnoui
./libtool: line 6000: cd: no: No such file or directory
libtool: link: cannot determine absolute directory name of `no'

Related to issue #16, where I get "yes" instead of "no", so seems like a Boolean variable is being used instead of a path variable (since this build is --without-opencl).

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

1 participant