winapi - Build twnsorflow for win32 -
i trying build tensorflow win32 cmake. fine until hit line: libprotobuf.lib(descriptor.obj) : fatal error lnk1112: module machine type 'x64' conflicts target machine type 'x86' [a:\src\tensorflow\tensorflow\contrib\cmake\build32\proto_text.vcxproj]
upon checking, libprotobuf.lib indeed built x64 binary.
so should change make build win32 library?
this problem resolved. apparently during building, tensorflow downloads protobuf, , generated project file has target machine set x64. easy fix.
now have encountered new problem: during building of pywrap_tensorflow_internal project, following link error happened: error lnk2001: unresolved external symbol "public: virtual __cdecl tensorflow::opdef::~opdef(void)"
it looks project using __cdecl calling convention while ~opdef destructor using __thiscall. , can't change calling convention of class destructor. have no idea how happen.
any idea on how fix calling convention mismatch issue?
Comments
Post a Comment