Windows DSP file

Brian Hook hook_l at pyrogon.com
Tue Mar 11 20:35:36 EST 2003


I'm trying to compile physfs for Windows and it's erroring out.  The 
errors are actually the result of setting "treat errors as warnings" 
in the DSP file, and since there are warnings, it's dying.

The specific warnings have to do with implicit conversations from 
64-bit values to standard ints (warnings are appended).

This can be fixed one of three ways:

- change the DSP file so that it no longer treats warnings as errors

- put in explicit casts so that the warning goes away

- actually "fix" the problem by changing the assignment targets to 
64-bit values, but that likely will just end up pushing the warnings 
further upstream

I can do any of the above and submit patches if you'd like, but just 
want to get some guidance first.

Brian

c:\pyrogon\dev\q2x\physfs\physfs.c(1719) : error C2220: warning 
treated as error - no object file generated
c:\pyrogon\dev\q2x\physfs\physfs.c(1719) : warning C4244: 'function' 
: conversion from 'unsigned __int64 ' to 'unsigned int ', possible 
loss of data
c:\pyrogon\dev\q2x\physfs\physfs.c(1737) : warning C4244: '=' : 
conversion from 'unsigned __int64 ' to 'unsigned int ', possible loss 
of data
c:\pyrogon\dev\q2x\physfs\physfs.c(1738) : warning C4244: '=' : 
conversion from 'unsigned __int64 ' to 'unsigned int ', possible loss 
of data
c:\pyrogon\dev\q2x\physfs\physfs.c(1862) : warning C4244: 'function' 
: conversion from 'unsigned __int64 ' to 'unsigned int ', possible 
loss of data
c:\pyrogon\dev\q2x\physfs\physfs.c(1882) : warning C4244: 'function' 
: conversion from 'unsigned __int64 ' to 'unsigned int ', possible 
loss of data

c:\pyrogon\dev\q2x\physfs\archivers\zip.c(253) : error C2220: warning 
treated as error - no object file generated
c:\pyrogon\dev\q2x\physfs\archivers\zip.c(253) : warning C4244: '=' : 
conversion from '__int64 ' to 'unsigned int ', possible loss of data
c:\pyrogon\dev\q2x\physfs\archivers\zip.c(285) : warning C4244: 
'function' : conversion from '__int64 ' to 'unsigned int ', possible 
loss of data
c:\pyrogon\dev\q2x\physfs\archivers\zip.c(289) : warning C4244: '+=' 
: conversion from '__int64 ' to 'unsigned int ', possible loss of 
data
c:\pyrogon\dev\q2x\physfs\archivers\zip.c(291) : warning C4244: '=' : 
conversion from '__int64 ' to 'unsigned int ', possible loss of data
c:\pyrogon\dev\q2x\physfs\archivers\zip.c(306) : warning C4244: '+=' 
: conversion from '__int64 ' to 'unsigned int ', possible loss of 
data
c:\pyrogon\dev\q2x\physfs\archivers\zip.c(344) : warning C4244: '=' : 
conversion from '__int64 ' to 'unsigned int ', possible loss of data
c:\pyrogon\dev\q2x\physfs\archivers\zip.c(374) : warning C4




More information about the physfs mailing list