coin-or / coin-or/Cbc

Link error when using binary Release 2.10.8 in VS2019

Open
#522 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1k
Forks
144
PR merge metrics
No merged PRs in 30d

Description

Hello.
I downloaded the release [Cbc-releases.2.10.8-w64-msvc16-md.zip](https://github.com/coin-or/Cbc/releases/download/releases%2F2.10.8/Cbc-releases.2.10.8-w64-msvc16-md.zip). The name suggests that it is compiled with "Multi-threaded DLL (/MD)" in Visual Studio. When using the lib in my project I get the following link error:

LNK2038 mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in main.obj ProjectName ...\libCbc.lib(CbcModel.obj)

Why am I getting this link error? Thank you.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by examining Cbc-releases.2.10.8-w64-msvc16-md.zip, libCbc.lib, and the VS2019 linker diagnostic for the RuntimeLibrary settings used by the release and main.obj. Done means identifying why MT_StaticRelease and MD_DynamicRelease differ and documenting the compatible release or project configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.