[OS] Using OS with Visual Studio and doing transformations

Stefan.Hackmann at rwe.com Stefan.Hackmann at rwe.com
Fri Aug 21 09:44:12 EDT 2009


Hi,

I would like to use COIN OS to call
different linear solvers in a unique
way.
I checked out the current version of OS from
https://projects.coin-or.org/svn/OS/trunk
and opened .\OS\MSVisualStudio\v9\OS.sln
with Visual Studio 2008. First of all the IDE
wants to convert the project. That's strange
from my point of view, since v9 project should
suit the 2008 version. However, all vcproj-files
have been converted. Now, building the complete
solution fails for projects OSSolverService and
OSTest, since external symbols are missing:

Error   420     error LNK2019: unresolved external symbol "public: void __thiscall LAP::TabRow::print(class std::basic_ostream<char,struct std::char_traits<char> > &,int,int const *,int)" (?print at TabRow@LAP@@QAEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@HPBHH at Z) referenced in function "protected: void __thiscall LAP::CglLandPSimplex::printTableau(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?printTableau at CglLandPSimplex@LAP@@IAEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@@Z)        libcgl.lib      OSTest
Error   4       error LNK2019: unresolved external symbol "public: __thiscall LAP::LandPMessages::LandPMessages(void)" (??0LandPMessages at LAP@@QAE at XZ) referenced in function "public: __thiscall LAP::CglLandPSimplex::CglLandPSimplex(class OsiSolverInterface const &,struct CglLandP::CachedData const &,class CglLandP::Parameters const &,class LAP::Validator const &)" (??0CglLandPSimplex at LAP@@QAE at ABVOsiSolverInterface@@ABUCachedData at CglLandP@@ABVParameters at 4@ABVValidator at 1@@Z)    libcgl.lib      OSTest
Error   5       error LNK2019: unresolved external symbol "public: void __thiscall LAP::Cuts::insert(int,class OsiRowCut *)" (?insert at Cuts@LAP@@QAEXHPAVOsiRowCut@@@Z) referenced in function "public: int __thiscall LAP::CglLandPSimplex::generateExtraCut(int,struct CglLandP::CachedData const &,class CglLandP::Parameters const &)" (?generateExtraCut at CglLandPSimplex@LAP@@QAEHHABUCachedData at CglLandP@@ABVParameters at 4@@Z)      libcgl.lib      OSTest
Error   6       error LNK2019: unresolved external symbol "void __cdecl LAP::modularizeRow(struct LAP::TabRow &,bool const *)" (?modularizeRow at LAP@@YAXAAUTabRow at 1@PB_N at Z) referenced in function "public: bool __thiscall LAP::CglLandPSimplex::optimize(int,class OsiRowCut &,struct CglLandP::CachedData const &,class CglLandP::Parameters const &)" (?optimize at CglLandPSimplex@LAP@@QAE_NHAAVOsiRowCut@@ABUCachedData at CglLandP@@ABVParameters at 5@@Z)        libcgl.lib      OSTest
Error   7       error LNK2019: unresolved external symbol "public: void __thiscall LAP::TabRow::print(class std::basic_ostream<char,struct std::char_traits<char> > &,int,int const *,int)" (?print at TabRow@LAP@@QAEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@HPBHH at Z) referenced in function "protected: void __thiscall LAP::CglLandPSimplex::printTableau(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?printTableau at CglLandPSimplex@LAP@@IAEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@@Z)        libcgl.lib      OSSolverService
Error   9       error LNK2019: unresolved external symbol "public: __thiscall LAP::LandPMessages::LandPMessages(void)" (??0LandPMessages at LAP@@QAE at XZ) referenced in function "public: __thiscall LAP::CglLandPSimplex::CglLandPSimplex(class OsiSolverInterface const &,struct CglLandP::CachedData const &,class CglLandP::Parameters const &,class LAP::Validator const &)" (??0CglLandPSimplex at LAP@@QAE at ABVOsiSolverInterface@@ABUCachedData at CglLandP@@ABVParameters at 4@ABVValidator at 1@@Z)    libcgl.lib      OSSolverService
Error   10      error LNK2019: unresolved external symbol "public: void __thiscall LAP::Cuts::insert(int,class OsiRowCut *)" (?insert at Cuts@LAP@@QAEXHPAVOsiRowCut@@@Z) referenced in function "public: int __thiscall LAP::CglLandPSimplex::generateExtraCut(int,struct CglLandP::CachedData const &,class CglLandP::Parameters const &)" (?generateExtraCut at CglLandPSimplex@LAP@@QAEHHABUCachedData at CglLandP@@ABVParameters at 4@@Z)      libcgl.lib      OSSolverService
Error   11      error LNK2019: unresolved external symbol "void __cdecl LAP::modularizeRow(struct LAP::TabRow &,bool const *)" (?modularizeRow at LAP@@YAXAAUTabRow at 1@PB_N at Z) referenced in function "public: bool __thiscall LAP::CglLandPSimplex::optimize(int,class OsiRowCut &,struct CglLandP::CachedData const &,class CglLandP::Parameters const &)" (?optimize at CglLandPSimplex@LAP@@QAE_NHAAVOsiRowCut@@ABUCachedData at CglLandP@@ABVParameters at 5@@Z)        libcgl.lib      OSSolverService

Any ideas, how I can fix this?

Moreover, I would like to know how I can use
the libraries to import and export files, so to do
a pure conversion on file basis, e.g. mps->OSiL, OSiL->mps,
lp->OSiL, OSiL->lp, lpr->OSrL, OSrL->lpr, without calling a solver.

Many thanks for your help,

Regards,
Stefan




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/os/attachments/20090821/6bb8867b/attachment.html 


More information about the OS mailing list