The problem happens with ld linker, lld linker and mold linker.
Will you take this into account in future releases? Perhaps by moving the template function LidarScan::field() to lidar_scan_impl.h (in the same way as destagger())?
Platform (please complete the following information):
Hello!
We have problems using your C++ Ouster SDK with Clang (clang-17 at the moment, but the same problem existed for earlier versions too).
The OusterSDK is compiled up with GCC 9.4.0 and linked to our application.
The problem is a linker error due to explicit template instantiations. GCC-13 doesn't have any linker error.
I think this issue is related https://github.com/llvm/llvm-project/issues/62134.
A hacky fix for us is to provide the full template function in our LidarOuster.cpp file:
The problem happens with ld linker, lld linker and mold linker.
Will you take this into account in future releases? Perhaps by moving the template function LidarScan::field() to lidar_scan_impl.h (in the same way as destagger())?
Platform (please complete the following information):