[Cbc] Include or linker error

Haroldo Gambini Santos haroldo at ufop.edu.br
Sat Aug 3 12:08:47 EDT 2019


Just add -IPathToThisHeader or (quick and dirty) copy the header to your 
directory.

On 8/1/19 11:25 PM, Daniel Grace wrote:
> 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
>
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> https://list.coin-or.org/mailman/listinfo/cbc

-- 
=============================================================
Haroldo Gambini Santos
Computing Department
Universidade Federal de Ouro Preto - UFOP
email: haroldo at ufop.edu.br
home/research page: www.decom.ufop.br/haroldo


It has long been an axiom of mine that the little things are infinitely
the most important.
-- Sir Arthur Conan Doyle, "A Case of Identity"



More information about the Cbc mailing list