Here are two examples of using OSI to construct and solve a simple Linear Program.

main.cpp
main2.cpp
Makefile