undefined reference to `__device_dts_ord_23'

Hello, I'm facing this linker error when trying to compile my project. Previously another thread mentioned that it can be fixed by compiling it in C instead of C++. How do I do that?

Related