Opened 18 years ago

Closed 18 years ago

Last modified 13 months ago

#177 closed defect (fixed)

mididrv.cpp compilation error in BeOS

Reported by: SF/kreeblah Owned by: SF/ender
Priority: normal Component: Port: BeOS
Keywords: Cc:


mididrv.cpp (from a CVS pull as of about 5 minutes ago) does
not compile in BeOS. I get the following when I try to do so:

gcc -g -O -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-
long -Wno-multichar -DUNIX `sdl-config --cflags` -I./ -I./
sound -c sound/mididrv.cpp -o sound/mididrv.o
/boot/home/ScummViewer/scummvm/scummvm/sound/mididrv.cpp: In
method `void MidiDriver_SEQ::close()':
implicit declaration of function `int close(...)'
/boot/home/ScummViewer/scummvm/scummvm/sound/mididrv.cpp: In
method `void MidiDriver_SEQ::send(long unsigned int)':
implicit declaration of function `int write(...)'
make: *** [sound/mididrv.o] Error 1

Obviously, ScummVM needs this for compilation, so just
removing it wouldn't work . . .

As a side note, I'm getting a warning when compiling

/boot/home/ScummViewer/scummvm/scummvm/simon/simon.cpp: In
method `void SimonState::dump_vga_script_always(byte *,
unsigned int, unsigned int)':
warning: unsigned int format, long unsigned int arg (arg 3)

Ticket imported from: #546648. Ticket imported from: bugs/177.

Change History (5)

comment:1 by SF/ender, 18 years ago

Owner: set to SF/ender
Resolution: fixed
Status: newclosed

comment:2 by SF/ender, 18 years ago

Compile error fixed.

comment:3 by SF/kreeblah, 18 years ago

Hmmm. I'm still getting the same compiler errors, but with every
error in mididrv.cpp shifted down a line (406 and 450 instead of 405
and 449) . . .

comment:4 by SF/ender, 18 years ago

Ok, stick a -DBEOS in the .proj file and commit it to the
patch tracker. Then I'll update CVS with it to work

comment:5 by digitall, 13 months ago

Component: --Unset--Port: BeOS
Note: See TracTickets for help on using tickets.