users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AW: Porting to mingw32


From: Ingo Blank
Subject: Re: AW: Porting to mingw32
Date: Wed, 28 Jan 2004 21:27:27 +0100

----- Original Message ----- 
From: "Cesar Rabak" <address@hidden>
To: "ibl" <address@hidden>
Sent: Wednesday, January 28, 2004 4:59 PM
Subject: Re: AW: Porting to mingw32


> ibl escreveu:
> >
> >>D:\Programacao\Prolog\GNU\gprolog-1.2.16\ExamplesC>new_main.exe
> >>
> >>Enter a name (or 'end' to finish): peter
> >>
> >>Fatal Error: Pl_Query_End(PL_RECOVER) but unrecoverable query
> >>
> >>Before I start to peruse all the code behind the libbips_pl.a, is there
> >>something obvious I may have overlooked?
> >
> >
> > Yes.
> > The "obvious" is an optimization bug in gcc.
> > (Which version are you using ?)
> >
> > I experienced the same with gcc 3.3.1 under Cygwin and 3.2.2 under
Linux.
> > Compiling with -O2 instead of -O3 should solve your problem.
> >
>
> I'm using GCC 3.3.1 (mingw special 20030804-1).
>
> I tried compiling with -O2 and w/o optimizations (by reconfiguring with
> '--without-c-flags' and now I cannot build the whole package!
>
> Now I get this error:
>
> gplc -o pl2wam.exe --no-fd-lib --min-bips pl2wam.o read_file.o
> bip_list.o syn_sugar.o internal.o code_gen.o reg_alloc.o inst_codif.o
> first_arg.o indexing.o wam_emit.o
>
d:\Programacao\Prolog\GNU\gprolog-1.2.16\src\BipsPl\libbips_pl.a(os_interf_c
.o)(.text+0x156f):os_interf_c.c:
> undefined reference to address@hidden'
> compilation failed
>
> I cannot find where was expected to be defined the symbol WSAFDIsSet.
>
> Anyone can give me a pointer?
>
> TIA
>
> --
> Cesar Rabak
>
Cesar,

__WSAFDIsSet is a Winsock function.
Link against ws2_32.lib, which is the original Windows library.
Don't know whether mingw  has it's own wrapper, though.

Regards
Ingo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]