Mirror of
forum.nim-lang.org
index
9512 :: Shared libraries complie-time
[2022-10-08T05:26:32+02:00]
View Orginal
sls1005
(orginal)
[2022-10-08T05:26:32+02:00]
view original
If it's possible for a Nim program to load a shared library at the runtime using
dlopen
, why can't the compiler (also a Nim program) do it at the compile-time? We can then use impure libraries at the compile-time.
ElegantBeef
(orginal)
[2022-10-08T05:29:00+02:00]
view original
If you build a compiler with
-d:libffi
you can.
sls1005
(orginal)
[2022-10-08T05:36:13+02:00]
view original
OK, thanks.