I made the .pl file into a ciao compiled .cpx file using the 'Make Executable' option from Explorer, which I have always thought of as a replacement for an .exe.
No, it's more like a script calling the Ciao engine...
If I try and run this .cpx file on another machine it seams to require ciao to be installed. Is this the case or is there another form of compilation needed?
Yes, as the script requires the Ciao engine to be present, it would, at first, require the system to be installed. However, there is a way to avoid that need for installation, allowing to distribute Ciao programs developed on Windows (Unix stand alone executables actually work by means of the -S flag on compilation).
The steps to follow are:
1. Compile the Ciao program with -s option. This comprises the libraries and other modules in the .cpx program file.
2. Create a .bat file with the following lines:
@SET CIAOLIB=.\ @"ciaoengine.exe" %* -C -i -b "program"
where program is the .cpx file name.
3. put the following files in the directory where the .cpx and .bat files are:
sh.exe cygwin1.dll ciaoengine.exe
(These files are in Win32/bin/ directory of any Ciao distribution for Windows).
The procedure to install the program in a Windows machine is just to copy the previous files in any directory, and run the batch file. There is no need to change the registry.
Greets.
-- Oscar Portela Arjona portela(a)grupobbva.net ============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------