LNK2022 metadata operation: Inconsistent layout information in duplicated types

前端 未结 3 2194
旧时难觅i
旧时难觅i 2020-12-06 01:35

I\'m having a new-to-me linker error in a project I\'m working with:

1>MSVCMRTD.lib(locale0_implib.obj) : error LNK2022: metadata operation failed (801311         


        
3条回答
  •  无人及你
    2020-12-06 02:02

    The fix for me was to set Configuration Properties -> C/C++ -> Code Generation -> Struct Member Alignment -> 16 Bytes (/Zp16)

提交回复
热议问题