首页 > 代码库 > vs05字节对齐问题又一不小心就弄去了我一个下午的时间
vs05字节对齐问题又一不小心就弄去了我一个下午的时间
由于一字节的对齐问题,我调一个库调了我基本一个下午.....
犯错其实并不可怕,
可怕的是你一犯再犯......
这也算得上是难能可贵...
/Zp (Struct Member Alignment)
Visual Studio 2013
Other Versions
Controls how the members of a structure are packed into memory and specifies the same packing for all structures in a module.
/Zp[1|2|4|8|16]
Remarks
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。