Install

Linux / Mac

git clone https://github.com/AmadeusITGroup/cPMML.git && cd cPMML && ./install.sh

Usage

// your_program.cc

#include <iostream>
#include "cPMML.h"

int main() {
    std::cout << "cPMML version: " << cpmml::version << std::endl;
    return 0;
}
g++ your_program.cc -lcPMML

Requirements

  • Git

  • Compiler supporting C++11.

  • CMAKE version >= 3.5.1.

Windows

git clone https://github.com/AmadeusITGroup/cPMML.git && cd cPMML && install.bat

The compiled library files will be placed under cpmml/cpmml_win

Usage

// your_program.cc

#include <iostream>
#include "cPMML.h"

int main() {
    std::cout << "cPMML version: " << cpmml::version << std::endl;
    return 0;
}

Supposing you cloned and built cPMML under some path like C:\Users\YourUser\cpmml.

copy C:\Users\YourUser\cpmml\cpmml_win\* .
g++ your_program.cc -L. -lcPMML

Requirements

  • Git

  • MinGW-W64 supporting C++11

  • CMAKE version >= 3.5.1