mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-04 11:00:04 -04:00
Both e.g. AIGame3.cpp and DallasFuncs.cpp include ``osiris_vector.h``. Right now, this is not a problem because DallasFuncs.cpp is not compiled itself, but included from AIGame3.cpp, in other words, it is all just one translation unit. I have a plan to do away with ``#include "DallasFuncs.cpp"``, which means the linker invocation for AIGame3.so will have at least two translation units, and thus two definitions of the osiris vector functions, which is not allowed. This also has the side-effect to reduce compile-time a little, from 1m57.5s to 1m48.7s on my 1135G7 CPU using `make -j8`.
7.4 KiB
7.4 KiB