develooper Front page | perl.perl5.porters | Postings from September 2013

Build broken with VC6

Thread Next
From:
Steve Hay
Date:
September 13, 2013 19:56
Subject:
Build broken with VC6
Message ID:
CADED=K4gF4o8ZfJMVvm3pknJY37bduu1UvF7ynrPgGvUvFSAnw@mail.gmail.com
Commit 3be8f09452 (drand48) has broken the build on Windows with VC6.

I had thought this change was fine when I tested earlier, but that was
with VC10. However, it turns out that VC6 doesn't like it:

cl -c -nologo -GF -W3 -I..\lib\CORE -I.\include -I. -I.. -DWIN32
-D_CONSOLE -DNO_STRICT -DPERLDLL -DPERL_CORE   -O1 -MD -Zi -DNDEBUG
-PERL_EXTERNAL_GLOB -DPERL_IS_MINIPERL -Fo.\mini\util.obj ..\util.c
util.c
..\inline.h(264) : warning C4244: '=' : conversion from 'long ' to
'unsigned char ', possible loss of data
..\util.c(6288) : warning C4244: 'function' : conversion from
'unsigned __int64' to 'double ', possible loss of data
..\util.c(6288) : error C2520: conversion from unsigned __int64 to
double not implemented, use signed __int64
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

It's ok from VC7 onwards:

cl -c -nologo -GF -W3 -I..\lib\CORE -I.\include -I. -I.. -DWIN32
-D_CONSOLE -DNO_STRICT -DPERLDLL -DPERL_CORE   -O1 -MD -Zi -DNDEBUG
-DPERL_EXTERNAL_GLOB -DPERL_IS_MINIPERL -Fo.\mini\util.obj ..\util.c
util.c
..\util.c(6288) : warning C4244: 'function' : conversion from
'perl_drand48_t' to 'double', possible loss of data

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