Commit 2fa6057a authored by Neal Wu's avatar Neal Wu Committed by GitHub
Browse files

Merge pull request #875 from tensorflow/fix-word2vec-g++-5

Added -D_GLIBCXX_USE_CXX11_ABI=0 to support g++ version 5 for word2vec
parents 09e0cdcc 1eee944a
...@@ -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