所用BCG版本: bcg 10[Project ->
Settings ->
C/C++ ->
Category: Code Generation -
Struct member alignment: 1 Byte
]
当把工程的 字节对齐设置为1时, 程序出错,
开发所用平台那个字节对齐必须设置为1,
大家知道怎么解决的说说看...
Settings ->
C/C++ ->
Category: Code Generation -
Struct member alignment: 1 Byte
]
当把工程的 字节对齐设置为1时, 程序出错,
开发所用平台那个字节对齐必须设置为1,
大家知道怎么解决的说说看...
这种情况,只能自己调试一下,看具体出错的位置
将BCG按字节对齐重新编译
我按一字节重新编译..出现了很多警告, 不知道要不要紧
C:\Program Files\BCGSoft\BCGControlBarPro\BCGCBPro\StdAfx.cpp(5) : warning C4653: compiler option 'structure packing (/Zp)' inconsistent with precompiled header; current command-line option ignored
Compiling...
BCGCBPro.cpp
C:\Program Files\BCGSoft\BCGControlBarPro\BCGCBPro\BCGCBPro.cpp(16) : warning C4653: compiler option 'structure packing (/Zp)' inconsistent with precompiled header; current command-line option ignored
Bcgglobals.cpp
C:\Program Files\BCGSoft\BCGControlBarPro\BCGCBPro\Bcgglobals.cpp(13) : warning C4653: compiler option 'structure packing (/Zp)' inconsistent with precompiled header; current command-line option ignored
BCGPAnimCtrl.cpp
.......
这个不是bcg平台.
是我们公司的平台字节对齐必须为1, 但又要用bcg, 所以这个字节对齐就冲突了...
那可能是你的BCG先前的预编译头跟现在的声明不一样,请Rebuild All即可