draffensperger / golp

Go bindings for LPSolve, a Mixed Integer Linear Programming (MILP) solver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issues on Ubuntu 20.04.3 LTS

KenanHH opened this issue · comments

I have followed your documentation for Debian 8+ and Linux distributions, but it did not deliver the expected result. However, I have found a solution without forking this repo and modifying #cgo lines in lp.go.

You can set LDFLAGS and CFLAGS with environment variables like:

export CGO_LDFLAGS=" -llpsolve55 -lm -ldl -lcolamd"
export CGO_CFLAGS="-I/usr/include/lpsolve"

Documentation should probably be updated and I will submit a small PR for README.md.