Mingw禁用Windows上的TLS(线程本地存储)
您好,我有一个转换为DLL的项目,并与MingW-W64-I686-Toolchain编译 问题是构建EXE或DLL MINGW创建3个TLS回调TLSCALLBACK_0,TLSCALLBACK_1,TLSCALLBACK_2,以及在CRT部分中生成并嵌入的一些TLS数据。这导致我的DLL崩溃,类似的项目使用Visual Studio Works转换。是否有一些开关或任何解决方案通过MINGW编译器禁用TLS?
Hello i have a project which i converted to dll, compiled with the mingw-w64-i686-toolchain
Problem is when building exe or dll mingw creates 3 tls callbacks TlsCallback_0,TlsCallback_1,TlsCallback_2 and also some TLS data produced and embed in CRT section. This causes my dll to crash, similar project converted using visual studio works. Is there some switch or any solution to disabl tls generation by mingw compiler?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论