You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.hAfter 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.The text was updated successfully, but these errors were encountered: