Commit 42113dbf authored by Neal Wu's avatar Neal Wu
Browse files

Added -D_GLIBCXX_USE_CXX11_ABI=0 to support g++ version 5 for word2vec

parent 09e0cdcc
...@@ -23,10 +23,10 @@ You will need to compile the ops as follows: ...@@ -23,10 +23,10 @@ You will need to compile the ops as follows:
```shell ```shell
TF_INC=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())') TF_INC=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())')
g++ -std=c++11 -shared word2vec_ops.cc word2vec_kernels.cc -o word2vec_ops.so -fPIC -I $TF_INC -O2 g++ -std=c++11 -shared word2vec_ops.cc word2vec_kernels.cc -o word2vec_ops.so -fPIC -I $TF_INC -O2 -D_GLIBCXX_USE_CXX11_ABI=0
``` ```
(For an explanation of what this is doing, see the tutorial on [Adding a New Op to TensorFlow](https://www.tensorflow.org/how_tos/adding_an_op/#building_the_op_library)). (For an explanation of what this is doing, see the tutorial on [Adding a New Op to TensorFlow](https://www.tensorflow.org/how_tos/adding_an_op/#building_the_op_library)). The flag `-D_GLIBCXX_USE_CXX11_ABI=0` is included to support newer versions of g++.
Then run using: Then run using:
```shell ```shell
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment