The definition of MIN macro in Halcon and the MIN function in C++ defined by yourself -- the solution to the problem of renaming conflict

I want to implement a function that obtains the minimum value, and find that there has been a problem, and an error is reported

Look at the above MIN display as a macro definition, but the following is the function we want

It seems to be the same name. I tried the method of adding parentheses and found that it still didn't work.

 Later, considering that we do not need MIN in HALCON, the solution is: cancel the macro definition

that solves it

Guess you like

Origin blog.csdn.net/weixin_51229250/article/details/123601082