Logtalk should work with JIProlog starting from v3.0.2-6.
I am doing the following:
1. starting JIProlog IDE
2. loading ji.config from the Logtalk\configs
3. loading logtalk.pl (compiler and runtime files) from Logtalk\compiler
4. loading libpaths.pl (library paths configuration file) from the
Logtalk\libpaths.
Afterwards, i try to run a simple Logtalk example from JIProlog:
1. i change the current working directory to ....\hello_world\
cd('C:\\Users\\Monikuta\\Documents\\Logtalk_workspace\\examples\\hello_world\\').
2. and i compile the hello_world.lgt program by logtalk_compile(hello_world).
...and it crashes :
Code: Select all
JIP:- logtalk_compile(hello_world)
>>> compiling source file hello_world...
compiling object hello_world...
ERROR! entity_ending_directive_missing(object, hello_world)
error(entity_ending_directive_missing(object, hello_world), logtalk_compile(hello_world))
User Exception
Stack Trace? (y/n)y
xcall(com.ugos.JIProlog.extensions.exception.JIPCatch3, [logtalk_compile(hello_world, []), error(entity_ending_directive_missing(object, hello_world), logtalk_compile(hello_world, [])), throw(error(entity_ending_directive_missing(object, hello_world), logtalk_compile(hello_world)))])
- catch(logtalk_compile(hello_world, []), error(entity_ending_directive_missing(object, hello_world), logtalk_compile(hello_world, [])), throw(error(entity_ending_directive_missing(object, hello_world), logtalk_compile(hello_world))))
- logtalk_compile(hello_world)
"Logtalk runs with little or no modifications with the following back-end Prolog compilers (in alphabetical order): * ALS Prolog 3.1 * Amzi! Prolog 7.6.1 * BinProlog 8.x~10.x * B-Prolog 7.0 * CIAO Prolog 1.10p5 * CxProlog 0.96.1 * ECLiPSe 5.10#26 * IF/Prolog 5.x * JIProlog 3.0.2-8",
but the following simple program (without any objects defined) compiles just fine with the logtalk_compile directive:
printme.lgt:
Code: Select all
printingMe :- write('heeeeeeeeeeeeeeeeeeeeeelp').
JIP :- logtalk_compile(printme).
JIP :- logtalk_load(printme).
JIP :- printingMe.