Opened 23 years ago

Closed 23 years ago

Last modified 6 years ago

#177 closed defect (fixed)

mididrv.cpp compilation error in BeOS

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

Description

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()': /boot/home/ScummViewer/scummvm/scummvm/sound/mididrv.cpp:405: implicit declaration of function `int close(...)' /boot/home/ScummViewer/scummvm/scummvm/sound/mididrv.cpp: In method `void MidiDriver_SEQ::send(long unsigned int)': /boot/home/ScummViewer/scummvm/scummvm/sound/mididrv.cpp:449: 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 simon.cpp:

/boot/home/ScummViewer/scummvm/scummvm/simon/simon.cpp: In method `void SimonState::dump_vga_script_always(byte *, unsigned int, unsigned int)': /boot/home/ScummViewer/scummvm/scummvm/simon/simon.cpp:7178: 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, 23 years ago

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

comment:2 by SF/ender, 23 years ago

Compile error fixed.

comment:3 by SF/kreeblah, 23 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, 23 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 properly.

comment:5 by digitall, 6 years ago

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