title: How is it possible use SVM Light inside the C++ code? (Possibly without invoking the executable from C++ code)
body: <p>I have to use the tool SVM Light in my C++ code. I compiled and linked the SVM Light to my code like in <a href="http://svmlight.joachims.org/" rel="nofollow noreferrer">http://svmlight.joachims.org/</a>  but now how can I call </p>
  
  <pre><code>./svm_learn -v 0 -x 1  example1/train.dat example1/model
  </code></pre>
  
  <p>for example from my C++ code instead that from command line?
  Namely in the original code with </p>
  
  <pre><code>./svm_learn -v 0 -x 1  example1/train.dat example1/model
  </code></pre>
  
  <p>i get the svm model. How can I get now the same model from my C++ code?Preferably calling a function from my C++ code rather than calling the executable from command line? (May be that I'm enforced to use system or similar functions to invoke the C object code (the executable) from my c++ code.... Is like this?)</p>
  
  <p>(I'm using C++11 compiler, on Linux)
  Thanks in advance</p>