Jan, I’ve been able to perform some tests, after downloading and installing the latest daily build.
But I had to use Visual Studio 2022, because swipl-ld didn’t work.
First, the positive results:
Welcome to SWI-Prolog (threaded, 64 bits, version 9.3.20-16-g42d61c053)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.
For online help and background, visit [https://www.swi-prolog.org](https://www.swi-prolog.org)
For built-in help, use ?- help(Topic). or ?- apropos(Word).
1 ?- ls.
% [test_trace.pl](http://test_trace.pl) trace.c
% test_trace.vcxproj [trace.pl](http://trace.pl)
% test_trace.vcxproj.filters x64/
% test_trace.vcxproj.user
true.
2 ?- [test_trace].
true.
3 ?- trace.
true.
[trace] 3 ?- ls.
% Tracing by yielding to C
^ Call: (19) catch(tty_size(_7428, _7430), _8112, _7430=80)? s
[skip]
^ Exit: (19) catch(shell:tty_size(_7428, 80), error(not_implemented(procedure, tty_size/2), context(prolog_stack([frame(20, call(system:tty_size/2), tty_size(_19856, _19858)), frame(19, clause(<clause>(0000029effd183f0), 2), catch(shell:tty_size(..., ...), _19884, shell:(... = ...))), frame(18, clause(<clause>(0000029e81ab2500), 26), prolog:message(..., ..., ...)), frame(17, clause(..., ...), translate_message(..., ..., ...)), frame(..., ..., ...)|...]), _19818)), shell:(80=80))? s
[skip]
Call: (19) _21202=_7420? l
[leap]
% [test_trace.pl](http://test_trace.pl) trace.c
% test_trace.vcxproj [trace.pl](http://trace.pl)
% test_trace.vcxproj.filters x64/
% test_trace.vcxproj.user
true.
[debug] 4 ?-
Now, for the swipl-ld problem (that happens also if I try using what worked when I helped Stassa…)
PS C:\Users\cccar\test\prolog\swipl\yield-trace> swipl-ld -o trace -g trace.c
gcc.exe: warning: files/swipl: linker input file unused because linking not done
gcc.exe: error: files/swipl: linker input file not found: No such file or directory
gcc.exe returned code 1
*** C:\Program Files\swipl\bin\swipl-ld.exe exit status 1
Anyway, I feel I can continue.
Thanks, and see you soon.