Building a project with tensorflow_cc.dll in Windows with Visual Studio

Viewed 26

I'm working with a project that needs the Tensorflow C++ API. In order to do that, I compiled the tensorflow_cc.dll like this (as a suggested here).

bazel build --config=opt //tensorflow:libtensorflow_cc.so

The problem is when compiling inside Visual Studio 2019, where I get the following error:

Error (active)  E0077   this declaration has no storage class or type specifier markdetector     
C:\xxx\tensorflow\bazel-bin\tensorflow\include\tensorflow\core\framework\graph.pb.h 41  

Does anybody knows how to compile a project against Tensorflow C++ API with Visual Studio in Windows? :-)

Thanks a lot.

0 Answers
Related