terryzhao127/tensorflow-windows-build-script

Unable to read tensorflow_cc.dll after linking

Closed this issue · 1 comments

tf version: 13.1
Type: CPU

I have successfully built the tensorflow using the script here. I have the following files,
tensorflow_cc.lib
tensorflow_cc.dll
added them to Linker -> Input -> Additional Dependencies,
.lib file paths to Linker -> General -> Additional Library Directories
Note: I have linked required C++ headers also.

My issue is VS2017 is unable to read tensorflow_cc.dll while building solution.

Error: LNK1107 invalid or corrupt file: cannot read at 0x358 tf demo 1 C:\tf13\tensorflow-windows-build-script\source\bazel-bin\tensorflow\tensorflow_cc.dll 1

https://drive.google.com/open?id=1pVO73wGxjJZJdMBX16FxowpXJwkyoH69

@guikarist Anything I am missing here ?

Looks like I linked at the wrong place. Fixed.