CVS Compilation Errors - uwadv fails to build
Status: Inactive
Brought to you by:
vividos
The following files have compilation errors in CVS
(downloaded 15/7/06):
source/base/savegame.cpp
Undefined reference to errno
Fixed by adding #include "errno.h" to includes
source/audio/vocfile.cpp
Undefined reference to SDL_ objects
Fixed by adding #include "SDL.h" to includes
source/underw/inventory.cpp
Many missing references; fixed some by changing
INCLUDES = line in source/underw/Makefile.am to
INCLUDES = -I$(srcdir)/../base -I$(srcdir)/../script -I
$(srcdir)/../renderer
However, source/underw/inventory.cpp contains a number
of other undefined references to header files, etc.
uwadv cannot be built from CVS.
I second that.
XMidiEventList.h needed
include <cstdlib></cstdlib>
For modern system,s vocfile.cpp needed
include <sdl sdl.h=""></sdl>
But then I got this:
midi/XMidiFile.cpp:447:73: error: cast from 'char' to 'uintptr {aka unsigned int}' loses precision [-fpermissive]
#define system_mem_offset(setting) ((uintptr)(&((systemArea)0)->setting))
^
midi/XMidiFile.cpp:1889:45: note: in expansion of macro 'system_mem_offset'
CreateMT32SystemMessage(time, system_base, system_mem_offset(masterVol), 1,&seventy);
^
midi/XMidiFile.cpp: In member function 'int XMidiFile::ExtractTracksFromXMIDIMT(IDataSource)':
midi/XMidiFile.cpp:447:73: error: cast from 'char ()[9]' to 'uintptr {aka unsigned int}' loses precision [-fpermissive]
#define system_mem_offset(setting) ((uintptr)(&((systemArea)0)->setting))
^
midi/XMidiFile.cpp:1944:45: note: in expansion of macro 'system_mem_offset'
CreateMT32SystemMessage(time, system_base, system_mem_offset(chanAssign), 9, system_part_chans);
^
midi/XMidiFile.cpp:447:73: error: cast from 'char ()[9]' to 'uintptr {aka unsigned int}' loses precision [-fpermissive]
#define system_mem_offset(setting) ((uintptr)(&((systemArea*)0)->setting))
^
midi/XMidiFile.cpp:1948:45: note: in expansion of macro 'system_mem_offset'
CreateMT32SystemMessage(time, system_base, system_mem_offset(reserveSettings), 9, system_part_rsv);
^
Makefile:462: recipe for target 'XMidiFile.lo' failed
make[2]: *** [XMidiFile.lo] Error 1
No idea how to fix that.
I'm closing this ticket, as it's easy to compile uwadv with Visual Studio 2019 now. I might restore mingw compilation at a later point. The errors in the midi files should be gone by now. Thanks for reporting!