Skip to content

Commit 5fe410b

Browse files
committed
Merge branch 'just_warning'
2 parents 7eee35a + 9ef8986 commit 5fe410b

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,30 @@ SQLite3 has its own [online documentation](http://www.sqlite.org/docs.html).
2828
The `test`-directory in this distribution contains a few simple examples
2929
for testing various features of this library.
3030

31+
### Build issues
32+
33+
SQLite3-OCaml depends on `pkg-config` to locate and compile against an
34+
[SQLite3](http://www.sqlite.org) library.
35+
36+
If the SQLite3 version is larger than or equal to 3.3.7, it is assumed that it
37+
supports [Run-Time Loadable Extensions](http://www.sqlite.org/loadext.html).
38+
If this feature has been explicitly disabled in the library, the build will
39+
fail with:
40+
41+
```
42+
Undefined symbols for architecture ...:
43+
"_sqlite3_enable_load_extension", referenced from:
44+
_caml_sqlite3_enable_load_extension in libsqlite3_stubs.a(sqlite3_stubs.o)
45+
(maybe you meant: _caml_sqlite3_enable_load_extension)
46+
```
47+
48+
* You can check if your library is missing loadable extensions by searching
49+
it for the string `OMIT_LOAD_EXTENSION`.
50+
51+
* If you need to change where `pkg-config` will look for the SQLite3
52+
library, set the `PKG_CONFIG_PATH` environment variable to the new
53+
directory.
54+
3155
Credits
3256
-------
3357

@@ -59,4 +83,4 @@ Up-to-date information should be available at:
5983

6084
Enjoy!
6185

62-
Markus Mottl on July 10, 2012
86+
Markus Mottl on February 9, 2015

0 commit comments

Comments
 (0)