# Static executable (-DSTATIC\_EXTENSIONS)

**URL:** <https://swi-prolog.discourse.group/t/static-executable-dstatic-extensions/5710>\
**Category:** General\
**Created:** [August 23, 2022, 3:24am UTC](https://swi-prolog.discourse.group/t/static-executable-dstatic-extensions/5710 "2022-08-23T03:24:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [August 23, 2022, 9:33am UTC](https://swi-prolog.discourse.group/t/static-executable-dstatic-extensions/5710/2 "2022-08-23T09:33:46Z")

</div>

Some packages are not yet ready for this. There are two demands: the install function of a library **must** be called `install_<libname>` and the Prolog side **must** use use\_foreign\_library/1 as

```
:- use_foreign_library(foreign(libname)).

```

Some packages (still) name the install function simply `install()`, but this obviously cannot work as you get a name conflict.

There may be other problems ☹ Only working on the Emscripten version with this option. PRs welcome 🙂

---

_[View the full topic](https://swi-prolog.discourse.group/t/static-executable-dstatic-extensions/5710)._
