jwindgassen / UnrealYAML

A UnrealEngine-Wrapper for the yaml-cpp Library
Other
25 stars 13 forks source link

Package win64 Error #3

Open qipaworld opened 2 years ago

qipaworld commented 2 years ago

blic\Node.h(182): error C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc UATHelper: Packaging (Windows (64-bit)): [19/21]

jwindgassen commented 1 year ago

Can you still check if that error still occurs? I also stumbled around it at some point, but I think I already fixed it.

gyrovague commented 1 year ago

I actually get this too (using latest version of this plugin). It doesn't happen in Editor target builds, only Game (so far) for some reason. I guess maybe it's a problem that the exception code is in the Node.h header instead of the cpp, perhaps the exception "spreads" to the code it is used from (where bEnableExceptions is not true), though I'm not sure why it works fine in Editor builds in that case.

jwindgassen commented 1 year ago

@qipaworld @gyrovague Can you try to set bEnableExceptions = true; in the Build.cs of the project that uses the Plugin and see if the warning disappears? I think since the Plugin uses try-catch-statements in the header files, modules using this Plugin will also need to enable Exception. This is a bit unfortunate, but I don't see a simple way to fix this. If adding this line removes the error, I will add a note to the README.

stayingcozy commented 8 months ago

I had a similar issue that qipaworld and gyrovague had. Putting bEnableExceptions = true; in both UnrealYAML.Build.cs and my <project_name>.Build.cs allowed me to package Unreal correctly for windows.