Skip to content

Commit e2f016b

Browse files
committed
fix c++11 compiler errors below
/usr/include/c++/4.9/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
1 parent de273b3 commit e2f016b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def main():
9393
language="c++",
9494
include_dirs=[os.path.join(re2_prefix, "include")] if re2_prefix else [],
9595
libraries=["re2"],
96+
extra_compile_args=['-std=c++11'],
9697
library_dirs=[os.path.join(re2_prefix, "lib")] if re2_prefix else [],
9798
runtime_library_dirs=[os.path.join(re2_prefix, "lib")] if re2_prefix else [],
9899
)

0 commit comments

Comments
 (0)