[FlopCpp] Visual Studio Errors

Dan Corbett dcorbett at climbtrees.com
Tue Feb 10 23:20:29 EST 2009


Greetings,

 

I am new to Coin-OR/FlopCpp and have been getting a number of errors when I
try to build solutions for the example files.  Can someone help me out?  

 

Many thanks!

 

-          Dan

 

For example, building the "transport" example I get this series of errors:

transport.obj : error LNK2019: unresolved external symbol "class
flopc::MP_expression __cdecl flopc::operator*(class flopc::Constant const
&,class flopc::MP_expression const &)"
(??Dflopc@@YA?AVMP_expression at 0@ABVConstant at 0@ABV10@@Z) referenced in
function _main

transport.obj : error LNK2019: unresolved external symbol "public:
__thiscall flopc::MP_domain::~MP_domain(void)" (??1MP_domain at flopc@@QAE at XZ)
referenced in function _main

transport.obj : error LNK2019: unresolved external symbol "public: void
__thiscall flopc::MP_constraint::operator=(class flopc::Constraint const &)"
(??4MP_constraint at flopc@@QAEXABVConstraint at 1@@Z) referenced in function
_main

transport.obj : error LNK2019: unresolved external symbol "class
flopc::MP_expression __cdecl flopc::sum(class flopc::MP_domain const &,class
flopc::MP_expression const &)"
(?sum at flopc@@YA?AVMP_expression at 1@ABVMP_domain at 1@ABV21@@Z) referenced in
function _main

transport.obj : error LNK2019: unresolved external symbol "public: static
class flopc::MP_index & __cdecl flopc::MP_index::getEmpty(void)"
(?getEmpty at MP_index@flopc@@SAAAV12 at XZ) referenced in function _main

transport.obj : error LNK2019: unresolved external symbol "public:
__thiscall flopc::MP_expression::MP_expression(class flopc::VariableRef
const &)" (??0MP_expression at flopc@@QAE at ABVVariableRef@1@@Z) referenced in
function _main

transport.obj : error LNK2019: unresolved external symbol "public: void
__thiscall flopc::MP_constraint::display(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >)const "
(?display at MP_constraint@flopc@@QBEXV?$basic_string at DU?$char_traits at D@std@@V?
$allocator at D@2@@std@@@Z) referenced in function _main

transport.obj : error LNK2019: unresolved external symbol "public:
__thiscall flopc::MP_constraint::MP_constraint(class flopc::MP_set_base
const &,class flopc::MP_set_base const &,class flopc::MP_set_base const
&,class flopc::MP_set_base const &,class flopc::MP_set_base const &)"
(??0MP_constraint at flopc@@QAE at ABVMP_set_base@1 at 0000@Z) referenced in function
_main

transport.obj : error LNK2019: unresolved external symbol "public: void
__thiscall flopc::MP_variable::display(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(?display at MP_variable@flopc@@QAEXABV?$basic_string at DU?$char_traits at D@std@@V?
$allocator at D@2@@std@@@Z) referenced in function _main

transport.obj : error LNK2019: unresolved external symbol "public:
__thiscall flopc::MP_variable::MP_variable(class flopc::MP_set_base const
&,class flopc::MP_set_base const &,class flopc::MP_set_base const &,class
flopc::MP_set_base const &,class flopc::MP_set_base const &)"
(??0MP_variable at flopc@@QAE at ABVMP_set_base@1 at 0000@Z) referenced in function
_main

transport.obj : error LNK2019: unresolved external symbol "public: class
flopc::DataRef const & __thiscall flopc::DataRef::operator=(class
flopc::Constant const &)" (??4DataRef at flopc@@QAEABV01 at ABVConstant@1@@Z)
referenced in function _main

transport.obj : error LNK2019: unresolved external symbol "class
flopc::Constant __cdecl flopc::operator/(class flopc::Constant const &,class
flopc::Constant const &)" (??Kflopc@@YA?AVConstant at 0@ABV10 at 0@Z) referenced
in function _main

transport.obj : error LNK2019: unresolved external symbol "class
flopc::Constant __cdecl flopc::operator*(class flopc::Constant const &,class
flopc::Constant const &)" (??Dflopc@@YA?AVConstant at 0@ABV10 at 0@Z) referenced
in function _main

transport.obj : error LNK2019: unresolved external symbol "public:
__thiscall flopc::Constant::Constant(int)" (??0Constant at flopc@@QAE at H@Z)
referenced in function _main

transport.obj : error LNK2019: unresolved external symbol "public:
__thiscall flopc::Constant::Constant(class flopc::DataRef const &)"
(??0Constant at flopc@@QAE at ABVDataRef@1@@Z) referenced in function _main

transport.obj : error LNK2019: unresolved external symbol "public: static
class flopc::MP_index_exp const & __cdecl
flopc::MP_index_exp::getEmpty(void)"
(?getEmpty at MP_index_exp@flopc@@SAABV12 at XZ) referenced in function _main

transport.obj : error LNK2019: unresolved external symbol "public:
__thiscall flopc::MP_index_exp::MP_index_exp(class flopc::MP_index &)"
(??0MP_index_exp at flopc@@QAE at AAVMP_index@1@@Z) referenced in function _main

transport.obj : error LNK2019: unresolved external symbol "public:
__thiscall flopc::Constant::Constant(double)" (??0Constant at flopc@@QAE at N@Z)
referenced in function _main

transport.obj : error LNK2019: unresolved external symbol "public: static
class flopc::MP_set & __cdecl flopc::MP_set::getEmpty(void)"
(?getEmpty at MP_set@flopc@@SAAAV12 at XZ) referenced in function _main

transport.obj : error LNK2019: unresolved external symbol "public: static
class flopc::MP_model & __cdecl flopc::MP_model::getDefaultModel(void)"
(?getDefaultModel at MP_model@flopc@@SAAAV12 at XZ) referenced in function _main

transport.obj : error LNK2019: unresolved external symbol "public:
__thiscall OsiClpSolverInterface::OsiClpSolverInterface(void)"
(??0OsiClpSolverInterface@@QAE at XZ) referenced in function _main

transport.obj : error LNK2001: unresolved external symbol "private: virtual
class flopc::MP_domain __thiscall flopc::MP_index::getDomain(class
flopc::MP_set *)const "
(?getDomain at MP_index@flopc@@EBE?AVMP_domain at 2@PAVMP_set at 2@@Z)

transport.obj : error LNK2019: unresolved external symbol "public:
__thiscall flopc::MP_domain::MP_domain(class flopc::MP_domain_base *)"
(??0MP_domain at flopc@@QAE at PAVMP_domain_base@1@@Z) referenced in function
"public: virtual __thiscall flopc::MP_set::operator class
flopc::MP_domain(void)const " (??BMP_set at flopc@@UBE?AVMP_domain at 1@XZ)

transport.obj : error LNK2019: unresolved external symbol "public:
__thiscall flopc::MP_domain_set::MP_domain_set(class flopc::MP_set const
*,class flopc::MP_index *)"
(??0MP_domain_set at flopc@@QAE at PBVMP_set@1 at PAVMP_index@1@@Z) referenced in
function "public: virtual __thiscall flopc::MP_set::operator class
flopc::MP_domain(void)const " (??BMP_set at flopc@@UBE?AVMP_domain at 1@XZ)

transport.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall flopc::MP_data::operator()(void)const "
(??RMP_data at flopc@@UBEXXZ)

transport.obj : error LNK2001: unresolved external symbol "private: static
double flopc::MP_data::outOfBoundData" (?outOfBoundData at MP_data@flopc@@0NA)

transport.obj : error LNK2019: unresolved external symbol "public:
__thiscall flopc::MP_index_exp::MP_index_exp(class flopc::MP_index_exp const
&)" (??0MP_index_exp at flopc@@QAE at ABV01@@Z) referenced in function "public:
__thiscall flopc::DataRef::DataRef(class flopc::MP_data *,class
flopc::MP_index_exp const &,class flopc::MP_index_exp const &,class
flopc::MP_index_exp const &,class flopc::MP_index_exp const &,class
flopc::MP_index_exp const &,int)"
(??0DataRef at flopc@@QAE at PAVMP_data@1 at ABVMP_index_exp@1 at 1111H@Z)

transport.obj : error LNK2001: unresolved external symbol "public: virtual
double __thiscall flopc::DataRef::evaluate(void)const "
(?evaluate at DataRef@flopc@@UBENXZ)

transport.obj : error LNK2001: unresolved external symbol "public: virtual
int __thiscall flopc::DataRef::getStage(void)const "
(?getStage at DataRef@flopc@@UBEHXZ)

transport.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall flopc::DataRef::operator()(void)const "
(??RDataRef at flopc@@UBEXXZ)

transport.obj : error LNK2001: unresolved external symbol "private: virtual
void __thiscall flopc::MP_variable::operator()(void)const "
(??RMP_variable at flopc@@EBEXXZ)

transport.obj : error LNK2019: unresolved external symbol "private:
__thiscall flopc::VariableRef::VariableRef(class flopc::MP_variable *,class
flopc::MP_index_exp const &,class flopc::MP_index_exp const &,class
flopc::MP_index_exp const &,class flopc::MP_index_exp const &,class
flopc::MP_index_exp const &)"
(??0VariableRef at flopc@@AAE at PAVMP_variable@1 at ABVMP_index_exp@1 at 1111@Z)
referenced in function "public: class flopc::VariableRef const & __thiscall
flopc::MP_variable::operator()(class flopc::MP_index_exp const &,class
flopc::MP_index_exp const &,class flopc::MP_index_exp const &,class
flopc::MP_index_exp const &,class flopc::MP_index_exp const &)"
(??RMP_variable at flopc@@QAEABVVariableRef at 1@ABVMP_index_exp at 1@0000 at Z)

transport.obj : error LNK2019: unresolved external symbol "public:
__thiscall flopc::MP_expression::MP_expression(class flopc::Constant const
&)" (??0MP_expression at flopc@@QAE at ABVConstant@1@@Z) referenced in function
"class flopc::Constraint __cdecl flopc::operator<=(class
flopc::MP_expression const &,class flopc::Constant const &)"
(??Nflopc@@YA?AVConstraint at 0@ABVMP_expression at 0@ABVConstant at 0@@Z)

transport.obj : error LNK2019: unresolved external symbol "public: void
__thiscall flopc::MP_model::minimize(class flopc::MP_expression const &)"
(?minimize at MP_model@flopc@@QAEXABVMP_expression at 2@@Z) referenced in function
"void __cdecl flopc::minimize(class flopc::MP_expression const &)"
(?minimize at flopc@@YAXABVMP_expression at 1@@Z)

transport.obj : error LNK2019: unresolved external symbol "public: virtual
__thiscall flopc::MP_domain_base::~MP_domain_base(void)"
(??1MP_domain_base at flopc@@UAE at XZ) referenced in function
__unwindfunclet$??0?$MP_domain_subset@$01 at flopc@@QAE at PAV?$MP_subset@$01 at 1@AB
V?$vector at PAVMP_index@flopc@@V?$allocator at PAVMP_index@flopc@@@std@@@std@@@Z$
0

transport.obj : error LNK2019: unresolved external symbol "public:
__thiscall flopc::MP_domain_base::MP_domain_base(void)"
(??0MP_domain_base at flopc@@QAE at XZ) referenced in function "public: __thiscall
flopc::MP_domain_subset<2>::MP_domain_subset<2>(class flopc::MP_subset<2>
*,class std::vector<class flopc::MP_index *,class std::allocator<class
flopc::MP_index *> > const &)"
(??0?$MP_domain_subset@$01 at flopc@@QAE at PAV?$MP_subset@$01 at 1@ABV?$vector at PAVMP
_index at flopc@@V?$allocator at PAVMP_index@flopc@@@std@@@std@@@Z)

transport.obj : error LNK2001: unresolved external symbol "public: virtual
unsigned int __thiscall flopc::MP_domain_base::size(void)const "
(?size at MP_domain_base@flopc@@UBEIXZ)

transport.obj : error LNK2019: unresolved external symbol "public: static
class flopc::MP_domain const & __cdecl flopc::MP_domain::getEmpty(void)"
(?getEmpty at MP_domain@flopc@@SAABV12 at XZ) referenced in function "public:
virtual class flopc::MP_domain __thiscall flopc::SUBSETREF::getDomain(class
flopc::MP_set *)const "
(?getDomain at SUBSETREF@flopc@@UBE?AVMP_domain at 2@PAVMP_set at 2@@Z)

transport.obj : error LNK2019: unresolved external symbol "public:
__thiscall flopc::MP_index_exp::MP_index_exp(int)"
(??0MP_index_exp at flopc@@QAE at H@Z) referenced in function "public: __thiscall
std::vector<class flopc::MP_index_exp,class std::allocator<class
flopc::MP_index_exp> >::vector<class flopc::MP_index_exp,class
std::allocator<class flopc::MP_index_exp> >(unsigned int)"
(??0?$vector at VMP_index_exp@flopc@@V?$allocator at VMP_index_exp@flopc@@@std@@@s
td@@QAE at I@Z)

C:\FlopC++-1.0.5\MSVisualStudio\v8\FlopCpp\examples\transport\Debug\transpor
t.exe : fatal error LNK1120: 39 unresolved externals

Build log was saved at
"file://c:\FlopC++-1.0.5\MSVisualStudio\v8\FlopCpp\examples\transport\Debug\
BuildLog.htm"

transport - 40 error(s), 0 warning(s)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/flopcpp/attachments/20090210/305976ef/attachment-0001.html 


More information about the FlopCpp mailing list