ORNL-Modelica / UnrealEngine-FMIPlugin

27 stars 5 forks source link

try-catch in A_FMU causes packaging error #20

Closed Omnicrola closed 2 years ago

Omnicrola commented 2 years ago

When running in editor, the plugin will run normally. When attempting to package for Windows desktop, the UnrealBuildTool will throw the following error and abort:

error C4530: C++ exception handler used, but unwind semantics are not enabled

Commenting out the try/catch will allow the packaging process to complete, but that's obviously not the best solution.

greenwoodms06 commented 2 years ago

Alrighty... Thanks for that.

I followed a recommendation here which yields adding in a sible line in the FMIKit.build.cd file.

I will push that to the master branch.

greenwoodms06 commented 2 years ago

I'm sure there will be other issues that arise given this is a prototype but at least we can package now! :)