[Coin-discuss] LP and TM solutions (Heesu Hwang)

Heesu Hwang hxh9528 at omega.uta.edu
Thu Sep 8 22:17:49 EDT 2005


Dear, Laci and Francois.

I tried to override display_feasible_solution(), and added solution
class files.
They were compiled, but in link stage, I've got undefined reference
error messages...
Could you give me any clue how to fix this?

Thanks,

Heesu Hwang.


/home/dcg/COIN/Examples/Dcg/Linux-g/DCG_solution.o(.text+0x5e): In
function `DCG_solution::DCG_solution(BCP_vec<DCG_var*>&, double)':
/home/dcg/COIN/Bcp/include/BCP_buffer.hpp:314: undefined reference to
`BCP_vec<DCG_var*>::swap(BCP_vec<DCG_var*>&)'
/home/dcg/COIN/Examples/Dcg/Linux-g/DCG_solution.o(.text+0x108): In
function `DCG_solution::DCG_solution(BCP_vec<DCG_var*>&, double)':
/home/dcg/COIN/Examples/Dcg/include/DCG_var.hpp:59: undefined reference
to `BCP_vec<DCG_var*>::swap(BCP_vec<DCG_var*>&)'
/home/dcg/COIN/Examples/Dcg/Linux-g/DCG_solution.o(.text+0x1cc): In
function `DCG_solution::DCG_solution(BCP_buffer&)':
/usr/include/c++/3.2.3/bits/stl_vector.h:981: undefined reference to
`BCP_vec<DCG_var*>::reserve(unsigned int)'
/home/dcg/COIN/Examples/Dcg/Linux-g/DCG_solution.o(.text+0x33c): In
function `DCG_solution::DCG_solution(BCP_buffer&)':
/usr/include/c++/3.2.3/bits/stl_vector.h:998: undefined reference to
`BCP_vec<DCG_var*>::reserve(unsigned int)'
/home/dcg/COIN/Examples/Dcg/Linux-g/DCG_solution.o(.gnu.linkonce.t._ZN7B
CP_vecIP7DCG_varED1Ev+0x15): In function
`BCP_vec<DCG_var*>::~BCP_vec()':
/home/dcg/COIN/Examples/Dcg/Member/DCG_solution.cpp:11: undefined
reference to `BCP_vec<DCG_var*>::deallocate()'
/home/dcg/COIN/Examples/Dcg/Linux-g/DCG_solution.o(.gnu.linkonce.t._Z16p
urge_ptr_vectorI7DCG_varEvR7BCP_vecIPT_ENS4_8iteratorES6_+0x63): In
function `void purge_ptr_vector<DCG_var>(BCP_vec<DCG_var*>&,
BCP_vec<DCG_var*>::iterator, BCP_vec<DCG_var*>::iterator)':
/usr/include/c++/3.2.3/bits/stl_vector.h:711: undefined reference to
`BCP_vec<DCG_var*>::erase(DCG_var**, DCG_var**)'
/home/dcg/COIN/Examples/Dcg/Linux-g/DCG_solution.o(.gnu.linkonce.t._ZN7B
CP_vecIP7DCG_varED0Ev+0x15): In function
`BCP_vec<DCG_var*>::~BCP_vec()':
/home/dcg/COIN/Examples/Dcg/Member/DCG_solution.cpp:11: undefined
reference to `BCP_vec<DCG_var*>::deallocate()'
/home/dcg/COIN/Examples/Dcg/Linux-g/DCG_lp.o(.gnu.linkonce.t._ZN7BCP_vec
IP7DCG_varE9push_backERKS1_+0x4b): In function
`BCP_vec<DCG_var*>::push_back(DCG_var* const&)':
/usr/include/c++/3.2.3/bits/stl_algobase.h:540: undefined reference to
`BCP_vec<DCG_var*>::insert_aux(DCG_var**, DCG_var* const&)'
collect2: ld returned 1 exit status
make[1]: *** [/home/dcg/COIN/Examples/Dcg/Linux-g/bcps] Error 1
make[1]: Leaving directory `/home/dcg/COIN/Examples/Dcg'
make: *** [dcg] Error 2




More information about the Coin-discuss mailing list