How can I make C++0x and __STRICT_ANSI__ get along?

后端 未结 3 1317
春和景丽
春和景丽 2020-12-29 05:16

I need to use popen in a project, but I get:

error: \'popen\' was not declared in this scope

It looks like GCC defines __STRICT_ANSI__

3条回答
  •  清酒与你
    2020-12-29 05:27

    I tested both MinGW gcc 4.6.1 and gcc 4.7.0: They both do define __STRICT_ANSI__ for -std=c++0x, but do not define it for -std=gnu++0x.

提交回复
热议问题