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

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

Thread Next
Greg Matheson
October 29, 2003 21:53
MinGW-3.1.0-1 _CRTIMP definition preempting win32.h's
Message ID:
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:

With this workaround, 

greg@7106 ~
$ diff perl-5.8.2-RC1/win32/win32.h perl-5.8.2-RC1/win32/win32.h~
< 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About