-Wno-invalid-offsetof



所有跟贴·加跟贴·新语丝科技论坛

送交者: steven 于 2005-3-03, 22:43:48:

回答: 3.2.2 由 Duke 于 2005-3-03, 21:33:16:

However, the warning is really something you should pay attention to, because your may rely on some undefined behaviors of compilers. The problem is that the offending classes are not C structure, but rather well defined C++ classes, and the behavior of the offsetof macro is not defined. G++ does what it supposted to do, but you shouldn't rely on it.



所有跟贴:


加跟贴

笔名: 密码(可选项): 注册笔名请按这里

标题:

内容(可选项):

URL(可选项):
URL标题(可选项):
图像(可选项):


所有跟贴·加跟贴·新语丝科技论坛