Heesung Yang

윈도우에서 DLL 파일을 찾을 수 없는 오류 해결 방법 (msvcp.dll, msvcr.dll 등등)

문제

Windows 10에서 프로그램 실행 시 특정 dll 파일이 없다는 오류

dll not found error

환경

  • Windows 10

해결방법

해당 dll 파일들은 MS에서 배포하는 재배포 가능 패키지를 설치하면 해결된다. 에러 메시지에 출력되는 dll 파일명의 숫자값을 보면 어떤 버전의 재배포 가능 패키지가 필요한지 알 수 있다.

DLL 파일명 재배포 가능 패키지
msvcp140.dll Microsoft Visual C++ 2015 Redistributable
msvcp120.dll Microsoft Visual C++ 2013 Redistributable
msvcp110.dll Microsoft Visual C++ 2012 Redistributable
msvcp100.dll Microsoft Visual C++ 2010 Redistributable
msvcp90.dll Microsoft Visual C++ 2008 Redistributable

필요한 재배포 가능 패키지 설치 파일은 아래와 같이 검색을 통해 찾을 수 있다.

redistributable search result

재배포 가능 패키지 설치 파일은 32비트/64비트 2종류가 있는데 둘 다 설치하자.

redistributable download popup

설치 이 후 설치된 재배포 가능 패키지프로그램 추가/삭제 메뉴에서 확인할 수 있다.

add-or-remove-programs