Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

ERROR: "Windows headers require the default packing option" when building/debugging

Explorer ,
Nov 28, 2020 Nov 28, 2020

Hey guys!

 

I've been working on an AE plugin, and I had a really strange problem today. I've never had a problem building/debugging the plugin, but today when I tried to debug in Visual Studio I got this error message:

 

-----

Severity Code Description Project File Line Suppression State
Error (active) E1574 static assertion failed with "Windows headers require the default packing option. Changing this can lead to memory corruption. This diagnostic can be disabled by building with WINDOWS_IGNORE_PACKING_MISMATCH defined." Skeleton C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h 2482

-----

 

After some googling, I found this stack overflow post and tried following their advice but it didn't help. I also tried defining "WINDOWS_IGNORE_PACKING_MISMATCH" in C/C++ > Preprocessor > Preprocessor Definitions but that didn't do anything either.

 

Does anyone know why this would've randomly started happening? Did I perhaps adjust a setting in my IDE without realizing it...? Any and all ideas would be greatly appreciated.

 

Thanks!

TOPICS
SDK
11.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Nov 28, 2020 Nov 28, 2020

Hi Vex

 

I got this error once after using VS2019 instead of my usual VS 2017. The solution for me was to do the following:
Project Settings > C/C++ > Code Generation > Struct Member Alignment (change to Default)

Translate
Explorer ,
Nov 28, 2020 Nov 28, 2020

Just wanted to add onto this and say, I've tried creating a completely new effect using the Skeleton template, and even when I just try to build that I still get this error. So, it seems like it must be something with my IDE or machine.

Still no idea what though!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 28, 2020 Nov 28, 2020
LATEST

Hi Vex

 

I got this error once after using VS2019 instead of my usual VS 2017. The solution for me was to do the following:
Project Settings > C/C++ > Code Generation > Struct Member Alignment (change to Default)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines