@@ -36,9 +36,11 @@ If you want to use erlang-sqlite3 on an embedded device, it can be cross-compile
|
|||||||
|
|
||||||
2. `nmake`.
|
2. `nmake`.
|
||||||
|
|
||||||
## DLL search path
|
### Potential compilation problems
|
||||||
|
|
||||||
Note that on Windows, `sqlite3.dll` usually won't be installed in the system-wide DLL search path. In this case, it should be placed in the working directory of your application.
|
* On Windows, `sqlite3.dll` usually won't be installed in the system-wide DLL search path. In this case, it should be placed in the working directory of your application.
|
||||||
|
|
||||||
|
* If SQLite was built with `SQLITE_OMIT_LOAD_EXTENSION` option, you'll need to undefine `ERLANG_SQLITE3_LOAD_EXTENSION` macro in <c_src/sqlite3_drv.h>.
|
||||||
|
|
||||||
## Running the test suite
|
## Running the test suite
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define _CRT_SECURE_NO_WARNINGS // secure functions aren't cross-platform
|
#define _CRT_SECURE_NO_WARNINGS // secure functions aren't cross-platform
|
||||||
// #define ERLANG_SQLITE3_LOAD_EXTENSION // uncomment if you need to enable loading extensions
|
#define ERLANG_SQLITE3_LOAD_EXTENSION // comment out if SQLite is built with SQLITE_OMIT_LOAD_EXTENSION
|
||||||
|
|
||||||
#include <erl_driver.h>
|
#include <erl_driver.h>
|
||||||
#include <erl_interface.h>
|
#include <erl_interface.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user