Compile svmvia (g++ 4.7.2-1ubuntu1)
I'm looking into some work with support vector machines (SVMs), and I ran into some errors when trying to compile svmvia from source. I think the error occurs because some compilers implicitly include certain files at compile time, but I'm not sure.
g++ 4.7.2 complained that "'strcmp' was not declared in this scope", and "'rand' was not declared in this scope". This was resolved by adding the following includes to their respective files; cstring contains strcmp and cstdlib contains rand.
Add to mainVia.cpp:
g++ 4.7.2 complained that "'strcmp' was not declared in this scope", and "'rand' was not declared in this scope". This was resolved by adding the following includes to their respective files; cstring contains strcmp and cstdlib contains rand.
Add to mainVia.cpp:
#include <cstring>Add to basic.cpp:
#include <cstdlib>Add to smo.cpp:
#include <cstdlib>
Comments
Post a Comment