title: fatal error: google/protobuf/port_def.inc: No such file or directory #include <google/protobuf/port_def.inc>
body: <p>I have windows. And I want to create an C++ op using library tensorflow. From this site <a href="https://www.tensorflow.org/guide/extend/op#compile_the_op_using_your_system_compiler_tensorflow_binary_installation" rel="noreferrer">https://www.tensorflow.org/guide/extend/op#compile_the_op_using_your_system_compiler_tensorflow_binary_installation</a> I understood that I should do folowing:</p>
  
  <pre><code>TF_CFLAGS=( $(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_compile_flags()))') )
  TF_LFLAGS=( $(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_link_flags()))') )
  g++ -std=c++11 -shared zero_out.cc -o zero_out.so -fPIC ${TF_CFLAGS[@]} ${TF_LFLAGS[@]} -O2
  </code></pre>
  
  <p>I did that. But I got next problem:</p>
  
  <pre><code>In file included from C:\Python\Python37\lib\site-packages\tensorflow\include/tensorflow/core/framework/op_def_builder.h:24,
                   from C:\Python\Python37\lib\site-packages\tensorflow\include/tensorflow/core/framework/op.h:23,
                   from zero_out.cc:4:
  C:\Python\Python37\lib\site-packages\tensorflow\include/tensorflow/core/framework/op_def.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory
   #include google/protobuf/port_def.inc
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  compilation terminated.
  
  </code></pre>
  
  <p>I don't understand how can I solve this problem. I would be really grateful if you can help me to solve this problem</p>