g++ -c -o knn.o knn.cpp
knn.cpp: In function ‘KNNModel* LoadKNNModel(std::ifstream&)’:
knn.cpp:252:14: error: ‘strcmp’ is not a member of ‘std’
252 | if (std::strcmp(cmd, "num_examples") == 0) {
| ^~~~~~
knn.cpp:255:14: error: ‘strcmp’ is not a member of ‘std’
255 | if (std::strcmp(cmd, "num_classes") == 0) {
| ^~~~~~
knn.cpp:258:14: error: ‘strcmp’ is not a member of ‘std’
258 | if (std::strcmp(cmd, "num_neighbors") == 0) {
| ^~~~~~
knn.cpp:261:14: error: ‘strcmp’ is not a member of ‘std’
261 | if (std::strcmp(cmd, "labels") == 0) {
| ^~~~~~
knn.cpp:268:14: error: ‘strcmp’ is not a member of ‘std’
268 | if (std::strcmp(cmd, "dist_neighbors") == 0) {
| ^~~~~~
knn.cpp:279:14: error: ‘strcmp’ is not a member of ‘std’
279 | if (std::strcmp(cmd, "label_neighbors") == 0) {
| ^~~~~~
knn.cpp:290:14: error: ‘strcmp’ is not a member of ‘std’
290 | if (std::strcmp(cmd, "min_same") == 0) {
| ^~~~~~
knn.cpp:301:14: error: ‘strcmp’ is not a member of ‘std’
301 | if (std::strcmp(cmd, "min_diff") == 0) {
| ^~~~~~
make: *** [<commande interne> : knn.o] Erreur 1
Regards.
Azaretdodo.
hello,
fail to success command line 'make' like copy paste following :
Thank you in advance to help myself fully installed your program,
Regards.
Azaretdodo.