logtalk_compile(File) logtalk_compile(Files)
Compiles to disk a source file or a list of source files using the default compiler flags specified in the Logtalk adapter file. The Logtalk source file name extension (by default, .lgt
) can be omitted. Source file paths can be absolute, relative to the current directory, or use library notation. This predicate can also be used to compile Prolog source files as Logtalk source code. When no recognized Logtalk or Prolog extension is specified, the compiler tries first to append a Logtalk source file extension and then a Prolog source file extension. If that fails, the compiler tries to use the file name as-is.
Note that only the errors related to problems in the predicate argument are listed below. This predicate fails when errors are found during compilation of a source file.
logtalk_compile(@source_file_name) logtalk_compile(@list(source_file_name))
instantiation_error
instantiation_error
type_error(source_file_name, File)
existence_error(library, Library)
existence_error(file, File)
| ?- logtalk_compile(set). | ?- logtalk_load(types(tree)). | ?- logtalk_compile([listp, list]).
logtalk_compile/2
, logtalk_load/1
, logtalk_load/2
, logtalk_make/0
, logtalk_make/1
logtalk_library_path/2