Skip to content

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

@chchang6

Description

@chchang6
  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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions