|
From: Vitor S. C. <vi...@bi...> - 2002-01-22 15:33:22
|
Dear Christophe, > I have an issue to compile Yap under Windows 98 with Cygwin. The function > WinError in the file sysbits.c crashes every time at the command Error(SYSTEM_ERROR, TermNil, "%s: %s", yap_error, msg). > The only I found to compile and run Yap is to remove this line.... which > isn't good. Error is called with a constant describing the kind of Error (check Yap.h.m4 for all its possible values), a Prolog term describing the term that caused the error, if known, and a format style string to output as an error message. You may also want to check the CVS version to see if Error is still giving trouble. Can you explain me how is this called? There should be no call to Error during Yap compilation. > I did install Cygwin quite recently, including Mingw and I'm not sure at > all where the error is coming from as I don't have any documentation about > the function Error(). > Error may have some relatively nasty stuff, as it may need to prepare a catch and throw mechanism. That has changed a lot in the CVS version, so it's probably a good idea to look at the CVS version. The algorithm is to set up the Prolog execution mode in order to avoid possible error within error situations, then create a Prolog term that contains the error message through a very repetitve switch, and then either exit, fail, or do some magic to set up a throw that work from within C code. > The second issue I have is with the DLL yap.dll. The files c_interface.h/c > and yap.def are consistent for the function YapMkVarTerm/MkVarTerm. > I could fix it by using YapMkVarTerm, but I need someone to make the > change on the CVS version. > Done, Thanks! > Thanks in advance for any help. > Cheers, Vitor |