Re: bug in compiling, with win32

Daniel Diaz <[email protected]>
Newsgroups gmane.comp.gnu.prolog.bugs
Message-ID <[email protected]>
Hi,

the win32 auto-install version you got has been compiled with MSVC++ 
6.0. You can run the interactive top-level (gprolog.exe) and consult 
Prolog files (interpreted mode). To run the command-line compiler 
(gplc.exe) you need nasm, a free x86 assembler 
(http://nasm.sourceforge.net/). However, you also need MSVC++ for the 
link phase (which is not free ;-)).

If you have not MSVC++ you can get the source distribution and compile 
it under cygwin, a unix layer on Win32, (http://www.cygwin.com)

I'm working on a win32 version that can run under MinGW, a pure Win32 
port of gcc (http://www.mingw.org). It will be released soon (in next days).

Good luck

NemboKid will never die (PriviJunior) wrote:
> Hello gentle Gnu staff.
> I'm a student of computer science at university of Milan.
> 
> We have to learn Prolog, so I've installed your Gnu Prolog, version 
> 1.2.16 (with the auto installing setup file), and my computer is a 
> Pentium II with Windows 98.
> I've read nearly all the whole documentation of your wonderful program, 
> but what a frustration I had when I wanted simply compile a prolog file!
> The trace of the prompt Dos is auto-explainant:
> 
> 
> D:\Documenti>gplc -v hook.pl
> 
> Prolog compiler (GNU Prolog) 1.2.16
> By Daniel Diaz
> Copyright (C) 1999-2002 Daniel Diaz
> GNU Prolog comes with ABSOLUTELY NO WARRANTY.
> You may redistribute copies of GNU Prolog
> under the terms of the GNU General Public License.
> For more information about these matters, see the files named COPYING.
> 
> Path used: C:\PROGRAMMI\GNU-PROLOG
> 
> *** Compiling
> 
> --- file: hook.pl
> pl2wam -o C:\WINDOWS\TEMP\gplc2.wam hook.pl
> wam2ma -o C:\WINDOWS\TEMP\gplc3.ma C:\WINDOWS\TEMP\gplc2.wam
> delete C:\WINDOWS\TEMP\gplc2.wam
> ma2asm -o C:\WINDOWS\TEMP\gplc4.asm C:\WINDOWS\TEMP\gplc3.ma
> delete C:\WINDOWS\TEMP\gplc3.ma
> nasm -f win32 -o C:\WINDOWS\TEMP\gplc5.obj C:\WINDOWS\TEMP\gplc4.asm
> error trying to execute nasm: No such file or directory
> compilation failed
> deleting temporary files before exit
> delete C:\WINDOWS\TEMP\gplc4.asm
> delete C:\WINDOWS\TEMP\gplc5.obj
> 
> D:\Documenti>
> 
> Practically lacks an exe-file, that should be "nasm.exe" under the 
> "prolog\bin" directory,
> that should compile an Assembly file into an Object file.
> 
> I hope there's an easy way to solve this problem.
> I thank you a lot for a possible reply!
> 
> Daniele Privitera
> Milan-Italy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.