SQLite Forum

Using sqlite3_load_extension on windows
Login
Just because you told your C++ compiler does not affect the C++ "name mangling" done by C++ compilers.  Suggest you use DUMPBIN (or whatever tool you want to use) to look at the export table for the DLL.  It is probably exporting the name mangled all to ratshit (in the C++ fashion).

The exported name should be "sqlite3\_sqlitefcts\_init" to match the name of the dll file.

If the name is mangled to ratshit in the C++ fashion (ie, not the above) try declaring it a cdecl as in:

```
__declspec(dllexport) cdecl int sqlite3_sqliteFcts_init
```