diff --git a/tensorflow_binding/setup.py b/tensorflow_binding/setup.py index a75134c..ee43569 100644 --- a/tensorflow_binding/setup.py +++ b/tensorflow_binding/setup.py @@ -59,6 +59,8 @@ extra_compile_args = ['-std=c++11', '-fPIC'] # current tensorflow code triggers return type errors, silence those for now extra_compile_args += ['-Wno-return-type'] +# The following is neccessary to compile with G++5 as Tensorflow uses the old ABI. +extra_compile_args += [ '-D_GLIBCXX_USE_CXX11_ABI=0'] if (enable_gpu): extra_compile_args += ['-DWARPCTC_ENABLE_GPU']