develooper Front page | perl.perl5.porters | Postings from August 2001

Re: [ID 20010731.105] MinGW can't compile win32.c on Windows 2000

Thread Previous
From:
John Kristian
Date:
August 2, 2001 04:51
Subject:
Re: [ID 20010731.105] MinGW can't compile win32.c on Windows 2000
Message ID:
019a01c11a9d$accd7c20$0100a8c0@JOHNKRISTIAN
John Kristian <jmk2001@engineer.com> wrote:
 > I expect most people will use the current version of MinGW.

For example:

Newsgroups: comp.lang.perl.misc
From: J.Jacob <jacobjf@cistron.nl>
Subject: win32.c:1631: structure has no member named `u'
Date: 2001-07-27 14:24:03 PST

I would like to use perl and to be able to convert my perl programs to
C code.
You have to build perl from source then, am i right ?

A new computer with winNT, upgraded to sp6a
Using gcc version 2.95.3-4 (mingw special)
I did everything like the README.win32 said, and did dmake in the
win32/ directory.
Everything did look fine but then....

Oh well, i have to use the binary distribution now?  And what is the
deal with crypt(), maybe they could just distribute perl from Canada ?
Maybe i can still produce C code with the ActiveState Perl but as far
as i understand that is not possible

Here is the error from dmake:

_EXTERNAL_GLOB -o.\mini\perlio.o ..\perlio.c
gcc -c -I..\lib\CORE -I.\include -I. -I.. -DWIN32  -DPERLDLL -DPERL_CO
RE -g  -O2 -o.\mini\win32.o win32.c
win32.c: In function `win32_uname':
win32.c:1631: structure has no member named `u'
win32.c:1636: warning: unreachable code at beginning of switch
statement
win32.c: In function `Nt4CreateHardLinkW':
win32.c:2486: warning: initialization from incompatible pointer type
win32.c:2505: union has no member named `u'
win32.c:2506: union has no member named `u'
win32.c: In function `win32_link':
win32.c:2537: warning: assignment from incompatible pointer type
win32.c: In function `w32_DomainName':
win32.c:3675: warning: assignment from incompatible pointer type
win32.c:3677: warning: assignment from incompatible pointer type
win32.c:3695: warning: passing arg 2 of `WideCharToMultiByte' makes
integer from pointer without a cast
win32.c:3699: warning: passing arg 2 of `WideCharToMultiByte' makes
integer from pointer without a cast
dmake.exe:  Error code 1, while making '.\mini\win32.o'



Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About