Closed orbea closed 4 years ago
For reference here is the next build failure.
[69/71] Building CXX object CMakeFiles/game.dir/Engine/Audio_SDL.cpp.o
samu: job failed: g++ -DD2EXE -I/usr/include/SDL2 -std=gnu++11 -MD -MT CMakeFiles/game.dir/Engine/Audio_SDL.cpp.o -MF CMakeFiles/game.dir/Engine/Audio_SDL.cpp.o.d -o CMakeFiles/game.dir/Engine/Audio_SDL.cpp.o -c ../Engine/Audio_SDL.cpp
In file included from ../Engine/Diablo2.hpp:2,
from ../Engine/Audio_SDL.hpp:2,
from ../Engine/Audio_SDL.cpp:1:
../Engine/../Shared/D2Shared.hpp:738:80: warning: ‘visibility’ attribute ignored [-Wattributes]
738 | typedef D2EXPORT D2ModuleExportStrc* (*GetAPIType)(D2ModuleImportStrc* pImports);
| ^
In file included from ../Engine/Audio_SDL.cpp:2:
../Engine/../Shared/D2HashMap.hpp: In member function ‘const void HashMap<K, V, M, L>::Copy(char16_t*, const char16_t*, int)’:
../Engine/../Shared/D2HashMap.hpp:38:45: error: return-statement with a value, in function returning ‘const void’ [-fpermissive]
38 | return D2Lib::qstrncpyz(dest, src, destLen);
| ^
samu: subcommand failed
Hi,
I wanted to try this project, but there are several build issues on linux with
gcc9
. I think I was able to fix some of them, but please review.1.
2.
3.