Home > Back-end >  Call for help, TensorFlow C problem
Call for help, TensorFlow C problem

Time:11-19

Under the Windows compiled using bazel tensorflow source code, want to use c + + call, code to run when the tip:

Error LNK2019 cannot resolve the external symbol of "public: __cdecl tensorflow: : Scope: : ~ the Scope (void)" (?????? 1 the scope @ tensorflow @ @ QEAA @ XZ), the symbol referenced in the main () function

Error LNK2019 cannot resolve the external symbol of "public: static class tensorflow: : Scope __cdecl tensorflow: : Scope: : NewRootScope (void)" (? NewRootScope @ Scope @ tensorflow @ @ SA? AV12 @ XZ), the symbol referenced in the main () function

How is this to return a responsibility excuse me ah, I put all the generated. Links to all the lib

CodePudding user response:

Learn how to use dumpbin. Exe/exports XXX. DLL look at XXX. DLL export functions

CodePudding user response:

Find def_file_filter. Py. TPL in def_fp. Write (" EXPORTS \ n ") below add def_fp. Write ("?????? 1 the scope @ tensorflow @ @ QEAA @ XZ \ n ") and def_fp. Write ("? NewRootScope @ Scope @ tensorflow @ @ SA? AV12 @ XZ \ n ") to recompile,
  • Related