develooper Front page | perl.perl5.porters | Postings from October 2003

MinGW-3.1.0-1 _CRTIMP definition preempting win32.h's

Thread Next
From:
Greg Matheson
Date:
October 29, 2003 21:53
Subject:
MinGW-3.1.0-1 _CRTIMP definition preempting win32.h's
Message ID:
20031030141158.A11772@ms
Recent perls are building for me on Windows 98 with the older
MinGW-2.0.0-3, but with the new MinGW-3.1.0-1, _pioinfo, 
imported by win32.h is not being declared as dllimport

This is due to the _CRTIMP definition in _mingw.h being pulled in
before win32.h's definition, according to Danny Smith on the 
mingw-users list.

See a discussion starting here: 
https://sourceforge.net/forum/message.php?msg_id=2253759

With this workaround, 

greg@7106 ~
$ diff perl-5.8.2-RC1/win32/win32.h perl-5.8.2-RC1/win32/win32.h~
505c505
< extern __declspec(dllimport) ioinfo * __pioinfo[];
---
> EXTERN_C _CRTIMP ioinfo* __pioinfo[];

I was able to build perl-5.8.2-RC1 and perl-5.9.0 on Windows 98.

-- 
Greg Matheson, Taiwan

Thread Next


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