COIN-OR::LEMON - Graph Library

Opened 16 years ago

Closed 16 years ago

#241 closed defect (fixed)

Compilation failure when CPLEX is enabled

Reported by: Alpar Juttner Owned by: Balazs Dezso
Priority: critical Milestone: LEMON 1.1 release
Component: core Version: hg main
Keywords: Cc:
Revision id:

Description

...
g++ -DHAVE_CONFIG_H -I. -I. -g -O2 -MT lemon/lemon_libemon_la-cplex.lo -MD -MP -MF lemon/.deps/lemon_libemon_la-cplex.Tpo -c lemon/cplex.cc -o lemon/lemon_libemon_la-cplex.o
lemon/cplex.cc:826: error: no 'lemon::CplexMip* lemon::CplexMip::newSolver() const' member function declared in class 'lemon::CplexMip'
lemon/cplex.cc: In member function 'lemon::CplexMip* lemon::CplexMip::newSolver() const':
lemon/cplex.cc:826: error: cannot allocate an object of abstract type 'lemon::CplexMip'
./lemon/cplex.h:227: note:   because the following virtual functions are pure within 'lemon::CplexMip':
./lemon/lp_base.h:1972: note: 	virtual lemon::MipSolver* lemon::MipSolver::newSolver() const
./lemon/lp_base.h:1974: note: 	virtual lemon::MipSolver* lemon::MipSolver::cloneSolver() const
lemon/cplex.cc: At global scope:
lemon/cplex.cc:827: error: no 'lemon::CplexMip* lemon::CplexMip::cloneSolver() const' member function declared in class 'lemon::CplexMip'
lemon/cplex.cc: In member function 'lemon::CplexMip* lemon::CplexMip::cloneSolver() const':
lemon/cplex.cc:827: error: cannot allocate an object of abstract type 'lemon::CplexMip'
./lemon/cplex.h:227: note:   since type 'lemon::CplexMip' has pure virtual functions

Attachments (1)

9d0d7e20f76d.patch (5.9 KB) - added by Balazs Dezso 16 years ago.
Fix

Download all attachments as: .zip

Change History (3)

Changed 16 years ago by Balazs Dezso

Attachment: 9d0d7e20f76d.patch added

Fix

comment:1 Changed 16 years ago by Balazs Dezso

The [9d0d7e20f76d] solves the problem.

comment:2 Changed 16 years ago by Alpar Juttner

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.