It didn't work.



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

送交者: Duke 于 2005-3-04, 13:33:01:

回答: -Wno-invalid-offsetof 由 steven 于 2005-3-03, 22:43:48:

Thanks, Steven. I tried it but it gave me the following:

cc1plus: unrecognized option '-Wno-invalid-offsetof'.

Is there something I need to set first. I'm using g++ instead of gcc. Does that make a difference?

By the way, where do I find such options?

I'm just curious about suppressing warnings in general. For this particular case, I've already modified my code so that it does not use offsetof() any more.

Thanks again.



所有跟贴:


加跟贴

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

标题:

内容(可选项):

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


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