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
enum class CostPenaltyType
{
SQUARED,
ABSOLUTE, // conflict with macro defined in #include <wingdi.h>
HINGE
};
// ...
double best_exact_merit{ std::numeric_limits<double>::max() }; // conflict with macro defined in minwindef.h
when I use the trajopt_sqp package would encounter with: error C2143: syntax error : missing '}' before 'constant'
how do you feel about adding those lines before CostPenaltyType?
@Astraaaaaaa can you place the trajopt_sqp code in a separate C++ utility file (compilation unit) that doesn't include Windows.h, and then call that utility file from your Windows code? Dealing with this type of issue is a rabbit hole that should be avoidable.
At file: trajopt_sqp\types.h
when I use the trajopt_sqp package would encounter with: error C2143: syntax error : missing '}' before 'constant'
how do you feel about adding those lines before CostPenaltyType?
The text was updated successfully, but these errors were encountered: