The application was unable to start correctly (0xc000007b) Visual Studio C++

后端 未结 2 984
醉话见心
醉话见心 2021-01-24 03:39

I have a simple hello world c++ program which links sqlite3.dll (64 bit version).

I have added sqlite3.h and sqlite3.dll correctly in the respective paths. The projects

相关标签:
2条回答
  • 2021-01-24 03:59

    Check if there is another sqlite3.dll in your path. When I tried it, I got the same error. It turns out there is a (32-bit?) sqlite3.dll in my python directory in the %PATH%. Copy the 64-bit dll to the same directory as your executable and run it again.

    0 讨论(0)
  • 2021-01-24 04:11

    So as explained in comments, you need to download the DEF file from binary package: https://www.sqlite.org/2015/sqlite-dll-win64-x64-3090100.zip

    Then you need to add this to cl compilation command: /DEF:sqlite3.def

    Now your DLL will have required entries in export table.

    0 讨论(0)
提交回复
热议问题