#4540 closed defect (fixed)
AMIGAOS4: Compiler error in audiostream.cpp
Reported by: | raziel- | Owned by: | lordhoto |
---|---|---|---|
Priority: | normal | Component: | Port: AmigaOS4 |
Version: | Keywords: | build | |
Cc: | Game: |
Description
ScummVM1.0.0r43442
Lately i wasnt able to test build the latest sources until today which brought me to the below error
g++ -Wp,-MMD,"sound/.deps/audiostream.d",-MQ,"sound/audiostream.o",-MP -Wall -g -mcrt=newlib -mstrict-align -mcpu=750 -mtune=7400 -W -Wno-unused-parameter -Wconversion -pedantic -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder -Wpointer-arith -Wcast-qual -Wcast-align -Wshadow -Wimplicit -Wnon-virtual-dtor -Wwrite-strings -fno-rtti -fno-exceptions -fcheck-new -DSCUMMVM_SVN_REVISION=\"43442\" -DHAVE_CONFIG_H -DDATA_PATH=\"/usr/local/share/scummvm\" -DPLUGIN_DIRECTORY=\"/usr/local/lib/scummvm\" -DSDL_BACKEND -DENABLE_SCUMM=STATIC_PLUGIN -DENABLE_SCUMM_7_8 -DENABLE_HE -DENABLE_AGI=STATIC_PLUGIN -DENABLE_AGOS=STATIC_PLUGIN -DENABLE_AGOS2 -DENABLE_CINE=STATIC_PLUGIN -DENABLE_CRUISE=STATIC_PLUGIN -DENABLE_DRASCULA=STATIC_PLUGIN -DENABLE_GOB=STATIC_PLUGIN -DENABLE_GROOVIE=STATIC_PLUGIN -DENABLE_KYRA=STATIC_PLUGIN -DENABLE_LURE=STATIC_PLUGIN -DENABLE_MADE=STATIC_PLUGIN -DENABLE_PARALLACTION=STATIC_PLUGIN -DENABLE_QUEEN=STATIC_PLUGIN -DENABLE_SAGA=STATIC_PLUGIN -DENABLE_IHNM -DENABLE_SCI=STATIC_PLUGIN -DENABLE_SKY=STATIC_PLUGIN -DENABLE_SWORD1=STATIC_PLUGIN -DENABLE_SWORD2=STATIC_PLUGIN -DENABLE_TINSEL=STATIC_PLUGIN -DENABLE_TOUCHE=STATIC_PLUGIN -DENABLE_TUCKER=STATIC_PLUGIN -I. -I. -I./engines -I/SDK/Local/newlib/include/SDL -D_GNU_SOURCE=1 -c sound/audiostream.cpp -o sound/audiostream.o sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer(int16*, int)': sound/audiostream.cpp:280: error: no matching function for call to 'MIN(int&, int32&)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer(int16*, int) [with bool stereo = false, bool is16Bit = false, bool isUnsigned = false, bool isLE = false]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN(int&, int32&)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer(int16*, int) [with bool stereo = false, bool is16Bit = true, bool isUnsigned = false, bool isLE = false]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN(int&, int32&)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer(int16*, int) [with bool stereo = false, bool is16Bit = true, bool isUnsigned = false, bool isLE = true]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN(int&, int32&)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer(int16*, int) [with bool stereo = false, bool is16Bit = false, bool isUnsigned = true, bool isLE = false]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN(int&, int32&)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer(int16*, int) [with bool stereo = false, bool is16Bit = true, bool isUnsigned = true, bool isLE = false]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN(int&, int32&)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer(int16*, int) [with bool stereo = false, bool is16Bit = true, bool isUnsigned = true, bool isLE = true]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN(int&, int32&)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer(int16*, int) [with bool stereo = true, bool is16Bit = false, bool isUnsigned = false, bool isLE = false]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN(int&, int32&)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer(int16*, int) [with bool stereo = true, bool is16Bit = true, bool isUnsigned = false, bool isLE = false]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN(int&, int32&)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer(int16*, int) [with bool stereo = true, bool is16Bit = true, bool isUnsigned = false, bool isLE = true]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN(int&, int32&)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer(int16*, int) [with bool stereo = true, bool is16Bit = false, bool isUnsigned = true, bool isLE = false]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN(int&, int32&)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer(int16*, int) [with bool stereo = true, bool is16Bit = true, bool isUnsigned = true, bool isLE = false]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN(int&, int32&)' sound/audiostream.cpp: In member function 'int Audio::LinearDiskStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer(int16*, int) [with bool stereo = true, bool is16Bit = true, bool isUnsigned = true, bool isLE = true]': sound/audiostream.cpp:591: instantiated from here sound/audiostream.cpp:280: error: no matching function for call to 'MIN(int&, int32&)' gmake: *** [sound/audiostream.o] Error 1
AmigaOS4 gcc version 4.2.4 (adtools build 20090118)
Ticket imported from: #2838568. Ticket imported from: bugs/4540.
Change History (4)
comment:1 by , 15 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:2 by , 15 years ago
comment:4 by , 6 years ago
Component: | --Unset-- → Port: AmigaOS4 |
---|
Should be working starting from r43447 on.