Open muridaerattus opened 10 months ago
Removing -wError
ignores the above error, but after compilation, gives a very long list of lines akin to
/usr/bin/ld: CMakeFiles/spacecraft.dir/src/Application.cpp.o: relocation R_X86_64_32S against symbol `_Z9shaderMapB5cxx11' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: CMakeFiles/spacecraft.dir/src/Chunk.cpp.o: relocation R_X86_64_32 against symbol `_ZZN9SingletonI11TileTextureE11getInstanceEvE1I' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: CMakeFiles/spacecraft.dir/src/MiniWorld.cpp.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE
when linking the executable. Adding -fPIE
does not change this message.
Compiled in release mode on Linux (Crostini, ChromeOS's virtualized Debian 11).