Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link error when using binary Release 2.10.8 in VS2019 #522

Open
hulsen opened this issue Jul 20, 2022 · 2 comments
Open

Link error when using binary Release 2.10.8 in VS2019 #522

hulsen opened this issue Jul 20, 2022 · 2 comments

Comments

@hulsen
Copy link

hulsen commented Jul 20, 2022

Hello.
I downloaded the release 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.

@tkralphs
Copy link
Member

Thanks for reporting this! Indeed, it looks like there is somehow a mistake in the Github Action configuration. The -md file is actually compiled with /MT. This is not the intention. I'll try to fix this as soon as possible.

@hulsen
Copy link
Author

hulsen commented Jul 21, 2022

Thank you for the fast response. For now, I will try to compile my own version of Cbc. Let me know when a new release is available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants