Thank you gawrilow and joswig. I had to sudo apt install libpolymake-dev to get polymake-config to my path. It was not being recognized otherwise. I am able to compile and link and build the executable fine.
Now, as I am stepping through the code in a debugging session, I don't seem to be able to step over the line `Main pm;`
I get the error,
ERROR: polymake::Main - /usr/lib/polymake/shared is not a symlink
The code I am stepping through is the same code originally presented in the pdf file I liked to in my opening post. It is:
Code: Select all
#include <polymake/Main.h>
#include <polymake/Matrix.h>
#include <polymake/SparseMatrix.h>
#include <polymake/Rational.h>
using namespace polymake;
int main(int argc, const char* argv[]) {
try {
const int dim = 4;
Main pm;
pm.set_application("polytope");
BigObject p("Polytope<Rational>");
p.take("VERTICES") << (ones_vector<Rational>() |
3*unit_matrix<Rational>(dim));
const Matrix<Rational> f = p.give("FACETS");
const Vector<Integer> h = p.give("H_STAR_VECTOR");
cout << "facets" << endl << f << endl << "h* " << h << endl;
} catch (const std::exception& ex) {
std::cerr << "ERROR: " << ex.what() << endl; return 1;
}
return 0;
}
Could you please help? I don't know if it could be because I am running all of this on WSL on an otherwise Windows machine. I checked on both WSL as well as a pure linux machine -- /usr/lib/polymake/shared does not exist on either machines. The contents of the folder are lib, perlx and config.ninja