出处:https://stackoverflow.com/questions/40980171/qt5core-dll-crashing

I've found that enabling /EHa (Structured Exception Handling) on the compiler solves my problem, as I can then use my default exception handling code (try/catch).

Appending this to my .pro did it:

win* {
   QMAKE_CXXFLAGS_EXCEPTIONS_ON = /EHa
   QMAKE_CXXFLAGS_STL_ON = /EHa
}

 

Visual Studio 在 c++, code generation.

相关文章:

  • 2021-09-14
  • 2022-12-23
  • 2021-11-10
  • 2021-04-23
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2021-07-31
  • 2021-05-16
  • 2021-10-01
相关资源
相似解决方案