0
4

1 回答 1

0

I think your problem is the order in which you're passing command line arguments to gcc

g++ -isystem -std=c++0x ~/gtest-1.7.0/include ...
    ^^^^^^^^^^^^^^^^^^^

The -isystem flag should be followed by a path that contains headers which you want gcc to treat as system headers. So the -std=c++0x flag is being incorrectly consumed by the -isystem flag. You probably want the command line to be

g++ -std=c++0x -isystem ~/gtest-1.7.0/include ...
于 2015-05-20T16:00:48.107 回答