# MSVC: error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease'

**Code:** `LNK2038` · **Category:** C/C++ · **Seen on:** MSVC, Windows

Objects or libraries were built with different C runtime settings.

## Meaning

Static (/MT) and dynamic (/MD) CRTs, and Debug/Release, cannot be mixed. Same for `_ITERATOR_DEBUG_LEVEL`.

## Common causes

- Third-party lib built with /MT
- Debug library in a Release build
- Mixed ITERATOR_DEBUG_LEVEL

## Quick fix

1. Rebuild everything with the same setting
2. Get the matching library build

## Detailed fix by platform

### Visual Studio

1. Project → C/C++ → Code Generation → Runtime Library

## How to diagnose

1. **Setting** — /MD vs /MT?
2. **Config** — Debug vs Release?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/cpp/lnk2038-mismatch-runtime-library)
