cginternals / cginternals/glbinding

VS2017 Runtime library mismatch problem.

Open
#261 2 comments 0 reactions 0 assignees View on GitHub
bug Setup
Dominant language
C++
Stars
877
Forks
95
PR merge metrics
No merged PRs in 30d

Description

Severity Code Description Project File Line Suppression State
Error LNK2038 mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in ipe_core.obj IPE X:\code\ipe\glbinding.lib(Binding_objects_a.obj) 1

I built glbinding with /MD. Why is the linker showing /MDd when I include Binding.h? Is this a VS bug that this library triggers? Is there some kind of hardcoded #define somewhere adding linker flags? I suspect that something deep in glbinding there's some kind of #ifdef NDEBUG somewhere that adds linker flags, so when I include Binding.h it adds /MDd linker flag to my source code ipe_core.obj.

I think I'm going to go with the DLL version, which works well. But whatever is happening here is insane, please stop this.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.