VOGONS


First post, by Snover

User metadata
Rank l33t++
Rank
l33t++
Compiling...
cl : Command line warning D4002 : ignoring unknown option '/QxMi'
cl : Command line warning D4002 : ignoring unknown option '/bQipo'
dosbox.cpp
Generating Code...
Compiling...
dirent.c
Generating Code...
Compiling...
fpu.cpp
c:\SBIN\DOSBox\cvs\dosbox\src\fpu\fpu_instructions.h(306) : error C2668: 'log' : ambiguous call to overloaded function
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(612): could be 'long double log(long double)'
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(564): or 'float log(float)'
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(193): or 'double log(double)'
while trying to match the argument list '(int)'
shell_misc.cpp
shell_cmds.cpp
shell_batch.cpp
\SBIN\DOSBox\cvs\dosbox\src\shell\shell_batch.cpp(80) : warning C4018: '<' : signed/unsigned mismatch
shell.cpp
\SBIN\DOSBox\cvs\dosbox\src\shell\shell.cpp(115) : warning C4101: 'old_in' : unreferenced local variable
\SBIN\DOSBox\cvs\dosbox\src\shell\shell.cpp(115) : warning C4101: 'old_out' : unreferenced local variable
support.cpp
setup.cpp
\SBIN\DOSBox\cvs\dosbox\src\misc\setup.cpp(318) : warning C4018: '>' : signed/unsigned mismatch
programs.cpp
messages.cpp
xms.cpp
mouse.cpp
ems.cpp
\SBIN\DOSBox\cvs\dosbox\src\ints\ems.cpp(359) : warning C4018: '<' : signed/unsigned mismatch
\SBIN\DOSBox\cvs\dosbox\src\ints\ems.cpp(370) : warning C4018: '<' : signed/unsigned mismatch
dpmi.cpp
\SBIN\DOSBox\cvs\dosbox\src\ints\dpmi.cpp(1354) : warning C4244: '=' : conversion from 'PhysPt' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\ints\dpmi.cpp(1355) : warning C4244: '=' : conversion from 'PhysPt' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\ints\dpmi.cpp(2590) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\ints\dpmi.cpp(2605) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
bios_keyboard.cpp
bios_disk.cpp
bios.cpp
int10_vesa.cpp
int10_put_pixel.cpp
int10_pal.cpp
int10_modes.cpp
Generating Code...
Compiling...
int10_misc.cpp
int10_memory.cpp
int10_char.cpp
int10.cpp
timer.cpp
tandy_sound.cpp
softmodem.cpp
\SBIN\DOSBox\cvs\dosbox\src\hardware\softmodem.cpp(478) : error C2668: 'abs' : ambiguous call to overloaded function
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(584): could be 'long double abs(long double)'
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(536): or 'float abs(float)'
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(530): or 'double abs(double)'
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(528): or 'long abs(long)'
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\stdlib.h(265): or 'int abs(int)'
while trying to match the argument list '(unsigned long)'
Show last 142 lines
\SBIN\DOSBox\cvs\dosbox\src\hardware\softmodem.cpp(482) : warning C4244: '+=' : conversion from 'double' to 'float', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\hardware\softmodem.cpp(483) : warning C4244: '+=' : conversion from 'double' to 'float', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\hardware\softmodem.cpp(544) : warning C4244: '+=' : conversion from 'double' to 'float', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\hardware\softmodem.cpp(545) : warning C4244: '+=' : conversion from 'double' to 'float', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\hardware\softmodem.cpp(561) : warning C4244: '+=' : conversion from 'double' to 'float', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\hardware\softmodem.cpp(562) : warning C4244: '+=' : conversion from 'double' to 'float', possible loss of data
serialport.cpp
\SBIN\DOSBox\cvs\dosbox\src\hardware\serialport.cpp(159) : warning C4018: '>=' : signed/unsigned mismatch
\SBIN\DOSBox\cvs\dosbox\src\hardware\serialport.cpp(159) : warning C4018: '<=' : signed/unsigned mismatch
\SBIN\DOSBox\cvs\dosbox\src\hardware\serialport.cpp(255) : warning C4018: '>=' : signed/unsigned mismatch
\SBIN\DOSBox\cvs\dosbox\src\hardware\serialport.cpp(255) : warning C4018: '<=' : signed/unsigned mismatch
\SBIN\DOSBox\cvs\dosbox\src\hardware\serialport.cpp(405) : warning C4244: '=' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
sblaster.cpp
\SBIN\DOSBox\cvs\dosbox\src\hardware\sblaster.cpp(453) : warning C4554: '&' : check operator precedence for possible error; use parentheses to clarify precedence
pic.cpp
pcspeaker.cpp
mpu401.cpp
mixer.cpp
\SBIN\DOSBox\cvs\dosbox\src\hardware\mixer.cpp(233) : warning C4018: '<' : signed/unsigned mismatch
memory.cpp
\SBIN\DOSBox\cvs\dosbox\src\hardware\memory.cpp(603) : warning C4018: '<' : signed/unsigned mismatch
keyboard.cpp
joystick.cpp
iohandler.cpp
hardware.cpp
gus.cpp
gameblaster.cpp
Generating Code...
Compiling...
dma.cpp
disney.cpp
cmos.cpp
\SBIN\DOSBox\cvs\dosbox\src\hardware\cmos.cpp(89) : warning C4554: '&' : check operator precedence for possible error; use parentheses to clarify precedence
adlib.cpp
c:\SBIN\DOSBox\cvs\dosbox\src\hardware\fmopl.c(1121) : error C2666: 'pow' : 7 overloads have similar conversions
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(620): could be 'long double pow(long double,int)'
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(618): or 'long double pow(long double,long double)'
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(572): or 'float pow(float,int)'
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(570): or 'float pow(float,float)'
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(534): or 'double pow(int,int)'
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(532): or 'double pow(double,int)'
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(195): or 'double pow(double,double)'
while trying to match the argument list '(int, double)'
c:\SBIN\DOSBox\cvs\dosbox\src\hardware\fmopl.c(1161) : error C2668: 'log' : ambiguous call to overloaded function
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(612): could be 'long double log(long double)'
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(564): or 'float log(float)'
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(193): or 'double log(double)'
while trying to match the argument list '(int)'
c:\SBIN\DOSBox\cvs\dosbox\src\hardware\fmopl.c(1163) : error C2668: 'log' : ambiguous call to overloaded function
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(612): could be 'long double log(long double)'
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(564): or 'float log(float)'
c:\SBIN\Microsoft Visual Studio .NET 2003\Vc7\include\math.h(193): or 'double log(double)'
while trying to match the argument list '(int)'
vga_seq.cpp
vga_misc.cpp
vga_memory.cpp
vga_gfx.cpp
vga_draw.cpp
vga_dac.cpp
vga_crtc.cpp
vga_attr.cpp
vga.cpp
sdlmain.cpp
render.cpp
midi.cpp
dos_tables.cpp
dos_programs.cpp
dos_mscdex.cpp
\SBIN\DOSBox\cvs\dosbox\src\dos\dos_mscdex.cpp(271) : warning C4244: '=' : conversion from 'Bit16u' to 'Bit8u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\dos\dos_mscdex.cpp(342) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit8u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\dos\dos_mscdex.cpp(343) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit8u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\dos\dos_mscdex.cpp(344) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit8u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\dos\dos_mscdex.cpp(514) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit8u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\dos\dos_mscdex.cpp(515) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit8u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\dos\dos_mscdex.cpp(516) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit8u', possible loss of data
dos_misc.cpp
Generating Code...
Compiling...
dos_memory.cpp
dos_ioctl.cpp
dos_files.cpp
\SBIN\DOSBox\cvs\dosbox\src\dos\dos_files.cpp(406) : warning C4244: 'argument' : conversion from 'Bit16u' to 'Bit8u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\dos\dos_files.cpp(699) : warning C4244: 'argument' : conversion from 'Bit16u' to 'Bit8u', possible loss of data
dos_execute.cpp
dos_devices.cpp
dos_classes.cpp
dos.cpp
cdrom_ioctl_win32.cpp
cdrom_aspi_win32.cpp
cdrom.cpp
drives.cpp
drive_virtual.cpp
drive_local.cpp
drive_cache.cpp
\SBIN\DOSBox\cvs\dosbox\src\dos\drive_cache.cpp(128) : warning C4244: 'return' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\dos\drive_cache.cpp(208) : warning C4018: '<=' : signed/unsigned mismatch
\SBIN\DOSBox\cvs\dosbox\src\dos\drive_cache.cpp(311) : warning C4018: '<' : signed/unsigned mismatch
debug_win32.cpp
debug_gui.cpp
debug_disasm.cpp
debug.cpp
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(128) : warning C4244: '=' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(790) : warning C4244: '=' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(791) : warning C4244: '=' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(792) : warning C4244: '=' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(793) : warning C4244: '=' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(794) : warning C4244: '=' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(795) : warning C4244: '=' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(796) : warning C4244: '=' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(797) : warning C4244: '=' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(798) : warning C4244: '=' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(799) : warning C4244: 'argument' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(800) : warning C4244: 'argument' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(801) : warning C4244: 'argument' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(802) : warning C4244: 'argument' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(803) : warning C4244: 'argument' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(804) : warning C4244: 'argument' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(827) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(830) : warning C4244: 'argument' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(837) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(882) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(902) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit8u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(903) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit8u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(924) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit8u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(937) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(947) : warning C4244: '=' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(970) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(976) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit8u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(987) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit8u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(996) : warning C4244: 'initializing' : conversion from 'Bit32u' to 'Bit8u', possible loss of data
\SBIN\DOSBox\cvs\dosbox\src\debug\debug.cpp(1099) : warning C4244: '=' : conversion from 'Bit32u' to 'Bit16u', possible loss of data
slow_16.cpp
paging.cpp
Generating Code...
Compiling...
modrm.cpp
flags.cpp
cpu.cpp
core_full.cpp
callback.cpp
Generating Code...
c:\sbin\dosbox\cvs\dosbox\src\cpu\cpu.cpp(404) : warning C4715: 'CPU_CALL' : not all control paths return a value

Yes, it’s my fault.

Reply 1 of 2, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Hmm all the errors seem to be in the MATH department.

Too bad they exist as well in fmopl.c
We usually don't modify this file.

fpu_instructions.h ->updated

softmodem.cpp....-> does it go allright in the first place as both parameters are **unsigned long** instead of a signed datatype?
I thought the result was unsigned by default then.

Water flows down the stream
How to ask questions the smart way!