Dear all,
Has anyone successfully created a stand alone executable that contains a shared
library object from a pack ?
On an ubuntu box with latest SWI Prolog development version, i get:
άμπελος;filters% swipl -f none
Welcome to SWI-Prolog (threaded, 64 bits, version 7.5.10-3-gf80d312)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.
For online help and background, visit
http://www.swi-prolog.orgFor built-in help, use ?- help(Topic). or ?- apropos(Word).
?- use_module(library(real)).
true.
?- [user].
example :-
|: x <- c(1,2,3),
|: <- x.
|: ^Dtrue.
?- example.
[1] 1 2 3
true.
?- qsave_program( filter, [foreign(save),stand_alone(true),goal(example)] ).
% autoloading prolog_codewalk:must_be/2 from /usr/local/users/na11/local/git/lib/swipl-7.5.10/library/error
....
% Autoloader: iteration 2 resolved 2 predicates and loaded 16 files in 0.045 seconds. Restarting ...
% Autoloader: loaded 24 files in 3 iterations in 0.154 seconds
/usr/bin/strip: '/usr/local/users/na11/local/git/lib/swipl-7.5.10/lib/x86_64-linux/real.so': No such file
false.
?-
real.so exists at:
$PREFIX/lib/swipl-7.5.10/pack/real/lib/x86_64-linux
Regards,
Nicos Angelopoulos
---
http://stoics.org.uk/~nicos