Cannot run g++ in powershell but can run in MSYS2 UCRT64 #27020
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I get the answer! it's the same issue as #24355. PS C:\Users\lph12> where.exe libwinpthread-1.dll
C:\Program Files\Wireshark\libwinpthread-1.dll
C:\msys64\ucrt64\bin\libwinpthread-1.dllYou can see |
Beta Was this translation helpful? Give feedback.


I get the answer! it's the same issue as #24355.
This is caused by a version mismatch of
libwinpthread-1.dll. Newer versions of GCC (15.x) require a specific implementation of clock_gettime64 found in the latest MSYS2 libraries. However, another software on system (e.g., Wireshark, Git for Windows, or Android SDK) contains an older version of the same DLL, and its path is prioritized in your system's PATH environment variable.I ran the command:
You can see
libwinpthread-1.dllin wireshark is priorer than the one in msys64. So you should move up the pa…