Building the source CLP on MS Visual Studio 2019 #182
-
Hi I was building the source code (CLP to start with: downloaded from https://www.coin-or.org/download/source/Clp/ version 1.17.6) on MS Visual Studio 2019 community edition on Windows 10. It turns out there are some LNK1181 errors when building the Example. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
I believe the sources you mention are nearly a year old. Could you try the same with the current? I'm doing some minor cleanup of the VS2019 solution (like #161). I'll also include the example projects. |
Beta Was this translation helpful? Give feedback.
-
:-) Yes, all the dependencies. Have a look at https://coin-or.github.io/user_introduction.html Personally, I prefer to build without coinbrew so git clone (or download as zip) the dependencies manually and build in Visual Studio. For Clp, this means to git clone Clp, CoinUtils, Osi, and BuildTools, and make sure they are in the same root folder (like repos/Clp, repos/CoinUtils, repos/Osi, repos/BuildTools) such that the relative paths in the solution & projects find each other. The VS2019 (v16) solutions and projects should work. |
Beta Was this translation helpful? Give feedback.
:-) Yes, all the dependencies. Have a look at https://coin-or.github.io/user_introduction.html
In short, the advised way is to let coinbrew grab all the dependencies for you and do the build.
Personally, I prefer to build without coinbrew so git clone (or download as zip) the dependencies manually and build in Visual Studio. For Clp, this means to git clone Clp, CoinUtils, Osi, and BuildTools, and make sure they are in the same root folder (like repos/Clp, repos/CoinUtils, repos/Osi, repos/BuildTools) such that the relative paths in the solution & projects find each other. The VS2019 (v16) solutions and projects should work.