Skip to content

Install error with cost_curve.h #24

Description

@enlochner

When trying to build the gcamwrapper package, I get an error
error C2589: '(': illegal token on right side of '::' in the file util/curves/include/cost_curve.h

After some googling, I found that what's probably happening is that "max" has been made a macro which happens at some point within windows.h. I think there are a few different solutions to this. I just added #undef max (and #undef min) to the top of the file, which seemed to fix it. Not sure if this is the best solution.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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