ihmin 2025. 1. 23. 01:49

msys2에서 주로 개발을 하는데.. pacman으로 패키지를 업데이트하다 보면..

특정 라이브러리의 버전이 올라가면서.. dll의 이름이 바뀌기도 함..

이때 프로그램을 실행하면 아래와 같이.. 에러가 생김..

$ ./main.exe
main.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory

 

이때 아래와 같이 검색..

% ntldd -R ./main.exe | grep "not found"
        libqalculate-23.dll => not found
          ext-ms-win-eventing-rundown-l1-1-0.dll => not found
          ext-ms-win-security-chambers-l1-1-0.dll => not found
          ext-ms-win32-subsystem-query-l1-1-0.dll => not found
....