Skip to content

Commit 2356564

Browse files
committed
Include warning for easier googling.
1 parent 3701a89 commit 2356564

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,14 @@ for testing various features of this library.
3030

3131
### Building
3232

33-
SQLite3-OCaml depends upon `pkg-config` to locate and compile against an [SQLite3](http://www.sqlite.org) library compiled with [Run-Time Loadable Extensions](http://www.sqlite.org/loadext.html).
33+
SQLite3-OCaml depends upon `pkg-config` to locate and compile against an [SQLite3](http://www.sqlite.org) library compiled with [Run-Time Loadable Extensions](http://www.sqlite.org/loadext.html). If you're missing this, the build will fail with:
34+
35+
```
36+
Undefined symbols for architecture ....:
37+
"_sqlite3_enable_load_extension", referenced from:
38+
_caml_sqlite3_enable_load_extension in libsqlite3_stubs.a(sqlite3_stubs.o)
39+
(maybe you meant: _caml_sqlite3_enable_load_extension)
40+
```
3441

3542
- You can check if your library is missing the extensions by checking for the string `OMIT_LOAD_EXTENSION`.
3643
- If you need to redirect where `pkg-config` finds the library, set the `PKG_CONFIG_PATH` environment variable to the new directory.

0 commit comments

Comments
 (0)