0

This error is generated during linking. How to resolve this issue? Can anyone help here?

How to figure out the issue and what could be the resolution?

Indrasen
  • 1
  • 3
  • Project > Properties > C/C++ > Code Generation > "Runtime Library" setting. All code you link must be compiled with the same setting. Including static library projects, the usual troublemaker. Or in other words, you can't link the release build of a library with the debug build of your program. Did you google this error message? First hit is good. – Hans Passant Jan 31 '23 at 14:42
  • I have complied the .lib(say xyz.lib) with Runtime Library as Multi-threaded Debug (/MTd). "xyz.lib" has been created successfully. Now, when I am trying to generate an executable(say abc.exe) using this lib file(xyz.lib). it is throwing above linking error.['MT_StaticRelease' doesn't match value 'MTd_StaticDebug'] – Indrasen Jan 31 '23 at 14:51
  • Can anyone give some pointers to resolve this issue? – Indrasen Jan 31 '23 at 16:46
  • [\[SO\]: Errors when linking to protobuf 3 on MS Visual C (@CristiFati's answer)](https://stackoverflow.com/a/35118400/4788546) – CristiFati Jan 31 '23 at 20:05

0 Answers0