Menu

#1 Compile fails with g++ 4.6.4

1.0
closed
nobody
None
2014-11-20
2014-11-20
No

Makefile gives this error:

% make

In file included from /usr/include/c++/4.6/forward_list:35:0,
from splitMEM.cc:12:
/usr/include/c++/4.6/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.

To fix it, it needs the option suggested:

% g++ -std=c++0x -O3 -o splitMEM splitMEM.cc

This then works.

Discussion

  • Michael Schatz

    Michael Schatz - 2014-11-20

    Fixed Makefile

     
  • Michael Schatz

    Michael Schatz - 2014-11-20
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB