I am using MinGW64, VSCode and Clion. By using stable-x86_64-pc-windows-msvc
, I can debug and breakpoints work. But with stable-x86_64-pc-windows-gnu
, when I debug, CLion shows error:
diesel_demo/target/debug/diesel_demo.exe
Process finished with exit code 1
And VSCode shows error:
Breakpoint warning: Unexpected symbol reader error while processing diesel_demo.exe. - g:\workspace\diesel_demo\src\main.rs:14
Breakpoint warning: Unexpected symbol reader error while processing diesel_demo.exe. - g:\workspace\diesel_demo\src\bin\show_posts.rs:7
Loaded 'G:\workspace\diesel_demo\target\debug\diesel_demo.exe'.
Loaded 'C:\Windows\System32\ntdll.dll'.
Loaded 'C:\Windows\System32\kernel32.dll'.
Loaded 'C:\Windows\System32\KernelBase.dll'.
Loaded 'C:\Windows\System32\advapi32.dll'.
Loaded 'C:\Windows\System32\msvcrt.dll'.
Loaded 'C:\Windows\System32\sechost.dll'.
Loaded 'C:\Windows\System32\rpcrt4.dll'.
Loaded 'C:\Windows\System32\userenv.dll'.
Loaded 'C:\Windows\System32\profapi.dll'.
Loaded 'C:\Windows\System32\ws2_32.dll'.
Loaded 'C:\Windows\System32\nsi.dll'.
Loaded 'C:\Program Files (x86)\Lua\5.1\clibs\libmysql.dll'. Module was built without symbols.
Unloaded 'C:\Program Files (x86)\Lua\5.1\clibs\libmysql.dll'.
The program '[10012] diesel_demo.exe' has exited with code -1073741701 (0xc000007b).
I am wondering, what decides which DLL to load, is it stable-x86_64-pc-windows-gnu
? Where does it look for DLLs? Why it looks for C:\Program Files (x86)\Lua\5.1\clibs
? How to solve this problem. Thank you.