Description
This issue was discussed in the discord channel, and in fact there is a workaround adding "-fno-threadsafe-statics" to the compiler flags (thanks to Thrimbor for that hint!!): it seems that adding certain declarations in a class, makes the program crash on start (even if that code is not executed). I built a minimal sample that has this behaviour and uploaded it here:
https://gist.github.com/hcfcoder/7d7cde1f55000d160084869f1c2fd141
In that sample, this declaration in the "Logger" class makes the program crash on boot:
std::stringstream m_str;
It crashes if we put it in the public part of the class, and also if we put it in the private part of the class too. On the other hand, putting that same declaration in the main function of the program, does not crash.