cjlin1 / libsvm

LIBSVM -- A Library for Support Vector Machines
https://www.csie.ntu.edu.tw/~cjlin/libsvm/
BSD 3-Clause "New" or "Revised" License
4.54k stars 1.64k forks source link

E2285 Could not find a match for 'max<T>(int,long)' #135

Closed blaisexen closed 5 years ago

blaisexen commented 5 years ago

svm.cpp during build time, int max_iter = max(10000000, l>INT_MAX/100 ? INT_MAX : 100*l); //int max_iter = INT_MAX; //ready to change like this????

E2285 Could not find a match for 'max(int,long)'

I also get this issue from svm-train.c, case 'q': svm_set_print_string_function = &print_null; //Lvalue required???? //svm_set_print_string_function; //ready to change like this???? i--; break;

Did I mess anything aside from compiling or building, I used 2.89 before now upgrade to 3.23 but error comes out. Any help?

cjlin1 commented 5 years ago

I suspect this is related to the version of visual C/C++ you used? Do you know the version number? On 2019-02-23 05:46, blaisexen wrote:

SVM.CPP during build time, int max_iter = max(10000000, l>INT_MAX/100 ? INT_MAX : 100*l);

E2285 Could not find a match for 'max(int,long)'

I also get this issue from SVM-TRAIN.C, case 'q': svm_set_print_string_function = &print_null; //Lvalue required???? //svm_set_print_string_function; //READY TO CHANGE LIKE THIS???? i--; break;

Did I mess anything aside from compiling or building, I used 2.89 before now upgrade to 3.23 but error comes out. Any help?

-- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [1], or mute the thread [2]. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/cjlin1/libsvm/issues/135", "url": "https://github.com/cjlin1/libsvm/issues/135", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Links:

[1] https://github.com/cjlin1/libsvm/issues/135 [2] https://github.com/notifications/unsubscribe-auth/AFGwnoDoBBIm8TkfnLvodAISGbuLNuWeks5vQUYxgaJpZM4bN88S

blaisexen commented 5 years ago

hi, I'm sorry I did not specify which version I used, or I'm using Embarcadero C++Builder 10.2.2

Lately LibSVM 2.89 has no problem, and now I used 3.23(latest update)?

from svm.cpp I just used this int max_iter = INT_MAX;

I don't know what's the advantage using the exact or default Maxiteration

from svm.h,

case 'q':
svm_set_print_string_function;
i--;
break;

Do you think that's fine?

cjlin1 commented 5 years ago

On 2019-02-23 08:14, blaisexen wrote:

hi, I'm sorry I did not specify which version I used, or I'm using Embarcadero C++Builder 10.2.2

Lately LibSVM 2.89 has no problem, and now I used 3.23(latest update)?

from svm.cpp I just used this int max_iter = INT_MAX;

using this is fine as the max #iter is very rarely reached.

I don't know what's the advantage using the exact or default Maxiteration

from svm.h,

case 'q': svm_set_print_string_function; i--; break;

Should be ok unless you really want -q to remove all outputs.

Do you think that's fine?

-- You are receiving this because you commented. Reply to this email directly, view it on GitHub [1], or mute the thread [2]. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/cjlin1/libsvm/issues/135#issuecomment-466665454", "url": "https://github.com/cjlin1/libsvm/issues/135#issuecomment-466665454", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Links:

[1] https://github.com/cjlin1/libsvm/issues/135#issuecomment-466665454 [2] https://github.com/notifications/unsubscribe-auth/AFGwnuvUJ9Ni0myhrYJymdyVE0XyWsoJks5vQWjcgaJpZM4bN88S

blaisexen commented 5 years ago

thank you