[Cbc] Include or linker error
Daniel Grace
danwgrace at gmail.com
Thu Aug 1 17:25:43 EDT 2019
Hi
I am trying to compile a C++ program with Qt that includes the line:
Cbc_addCol(model, name, 0.0, 1.0, 0.0, 1, 0, NULL, NULL);
I am getting a compiler error on this line:
'Cbc_addCol' was not declared in this scope
I have included the "h" file at the top of the program:
#include "Cbc_C_Interface.h"
And I am linking with:
LIBS += -L/usr/lib/x86_64-linux-gnu -lCbc -lCbcSolver
Both the files "libCbc.so" and "libCbcSolver.so" exist in that directory.
What am I missing?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20190801/dfd78406/attachment.html>
More information about the Cbc
mailing list