[bcc32 Error] Could not find a match for ' ...

Hi All,

I have an application that is built on Borland C++ builder 6, and I want to export it to Embarcadero XE5, when I do so, I get many errors having the structure:

[bcc32 Error] OILPAS_MainFormUnit.cpp(2570): E2285 Could not find a match for 'max<_Ty,_Pr>(unsigned int,int)'

Any idea how to solve this error?

Thanks in advance
Edit file OILPAS_MainFormUnit.cpp, goto line 2570.

You're calling max() with the first parameter as unsigned int and the second parameter as signed int.

You need to pass the same type, so either cast the first parameter to int, or cast the second to unsigned.
Topic archived. No new replies allowed.