On Jul 10, Paulo Moura wrote:
on 10.07.00 06:33, Marian Kamenov at marianpk(a)yahoo.com wrote:
I'm using CIAO for about a month on Windows NT 4.0 & Redhat Linux 6.1. I don't see such a problem.
Very easy to reproduce the bug. Just write a small Prolog source file with the following contents:
compile/1 is defined in the module toplevel.pl (see the ciao sources in the directory sheel) as follow:
compile(File) :- set_nodebug_mode(File), compiler:ensure_loaded(File).
So one solution to your problem is the following:
:- module(f,[test/0]).
:- use_module(library(compiler)).
test :- my_compile(c).
my_compile(File) :- set_nodebug_mode(File), compiler:ensure_loaded(File).
Or just use ensure_loaded directly (its define in library(compiler)).
ciao,
Samir. ------