[Cbc-tickets] [COIN-OR Branch-and-Cut MIP Solver] #26: cbc not
linking on windows with MS Visual Studio
COIN-OR Branch-and-Cut MIP Solver
coin-trac at coin-or.org
Wed Aug 1 17:02:21 EDT 2007
#26: cbc not linking on windows with MS Visual Studio
------------------------+---------------------------------------------------
Reporter: jpfasano | Owner: somebody
Type: defect | Status: new
Priority: major | Milestone:
Component: component1 | Version:
Keywords: |
------------------------+---------------------------------------------------
The Trunk version !CoinSolve.cpp (cbcSolve project) does not link on
window with MS Visual Studio Version 8. The link error is [[BR]]
{{{
------ Build started: Project: cbcSolve, Configuration: Release Win32
------
Linking...
MyMessageHandler.obj : error LNK2005: "public: __thiscall
MyMessageHandler::MyMessageHandler(void)" (??0MyMessageHandler@@QAE at XZ)
already defined in CoinSolve.obj
MyMessageHandler.obj : error LNK2005: "public: __thiscall
MyMessageHandler::MyMessageHandler(class CoinMessageHandler const &)"
(??0MyMessageHandler@@QAE at ABVCoinMessageHandler@@@Z) already defined in
CoinSolve.obj
MyMessageHandler.obj : error LNK2005: "public: virtual __thiscall
MyMessageHandler::~MyMessageHandler(void)" (??1MyMessageHandler@@UAE at XZ)
already defined in CoinSolve.obj
MyMessageHandler.obj : error LNK2005: "public: virtual int __thiscall
MyMessageHandler::print(void)" (?print at MyMessageHandler@@UAEHXZ) already
defined in CoinSolve.obj
MyMessageHandler.obj : error LNK2005: "public: __thiscall
MyMessageHandler::MyMessageHandler(class MyMessageHandler const &)"
(??0MyMessageHandler@@QAE at ABV0@@Z) already defined in CoinSolve.obj
MyMessageHandler.obj : error LNK2005: "public: class MyMessageHandler &
__thiscall MyMessageHandler::operator=(class MyMessageHandler const &)"
(??4MyMessageHandler@@QAEAAV0 at ABV0@@Z) already defined in CoinSolve.obj
MyMessageHandler.obj : error LNK2005: "public: virtual class
CoinMessageHandler * __thiscall MyMessageHandler::clone(void)const "
(?clone at MyMessageHandler@@UBEPAVCoinMessageHandler@@XZ) already defined in
CoinSolve.obj
.\Release/cbcSolve.exe : fatal error LNK1169: one or more multiply defined
symbols found
Build log was saved at "file://d:\COIN\Coin-Cbc-
All\trunk\Cbc\MSVisualStudio\v8\cbcSolve\Release\BuildLog.htm"
cbcSolve - 8 error(s), 0 warning(s)
}}}
[[BR]]
It seems that this link problem was probably introduced on 7/31 with the
change https://projects.coin-or.org/Cbc/changeset/715 [[BR]]
To recreate:[[BR]]
1. svn checkout https://projects.coin-or.org/svn/Cbc/trunk coin-Cbc-trunk
1. open the file coin-Cbc-trunk/Cbc/MSVisualStudio/v8/Cbc.sln with
visual studio C++ express edition.
1. From the menu bar select "Build" - "Batch Build", and then rebuild
everything.
--
Ticket URL: <https://projects.coin-or.org/Cbc/ticket/26>
COIN-OR Branch-and-Cut MIP Solver <http://projects.coin-or.org/Cbc>
An LP-based branch-and-cut MIP solver.
More information about the Cbc-tickets
mailing list