Skip to content

LNK2019 unresolved external symbol __std_reverse_trivially_swappable_8 when compiling proto_text.vcxproj #17012

@MennoK

Description

@MennoK

System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow): N/A
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
  • TensorFlow installed from (source or binary): source
  • TensorFlow version (use command below): 1.4
  • Python version: 3.5
  • Bazel version (if compiling from source): N/A
  • GCC/Compiler version (if compiling from source): Cmake 3.10.2, swigwin 3.0.12, Visual studio 2017, but toolset 2015 v140
  • CUDA/cuDNN version: N/A
  • GPU model and memory: N/A
  • Exact command to reproduce:

I'm following the CMake guide as described here: https://github.com/tensorflow/tensorflow/blob/fbddebee0bf07dadfb2b15ec678291dd5730ca99/tensorflow/contrib/cmake/README.md.

Error appears after following command:
MSBuild /p:Configuration=Release tf_tutorials_example_trainer.vcxproj

Describe the problem

Error when compiling the proto_text.vcxproj

Source code / logs

"C:\tensorflow\tensorflow\contrib\cmake\build\tf_tutorials_example_trainer.vcxproj" (default target) (1) ->
"C:\tensorflow\tensorflow\contrib\cmake\build\tf_cc_framework.vcxproj" (default target) (3) ->
"C:\tensorflow\tensorflow\contrib\cmake\build\tf_core_framework.vcxproj" (default target) (4) ->
"C:\tensorflow\tensorflow\contrib\cmake\build\proto_text.vcxproj" (default target) (5) ->
(Link target) ->
  libprotobuf.lib(text_format.obj) : error LNK2019: unresolved external symbol __std_reverse_trivially_swappable_8 referenced in function "void __cdecl std::_Buffered_inplace_merge_d
ivide_and_conquer2<class google::protobuf::Message const * *,__int64,class google::protobuf::Message const *,class google::protobuf::MapEntryMessageComparator>(class google::protobuf
::Message const * *,class google::protobuf::Message const * *,class google::protobuf::Message const * *,__int64,__int64,struct std::_Temporary_buffer<class google::protobuf::Message
const *> &,class google::protobuf::MapEntryMessageComparator,class google::protobuf::Message const * *,class google::protobuf::Message const * *,__int64,__int64)" (??$_Buffered_inpla
ce_merge_divide_and_conquer2@PEAPEBVMessage@protobuf@google@@_JPEBV123@VMapEntryMessageComparator@23@@std@@YAXPEAPEBVMessage@protobuf@google@@00_J1AEAU?$_Temporary_buffer@PEBVMessage
@protobuf@google@@@0@VMapEntryMessageComparator@23@0011@Z) [C:\tensorflow\tensorflow\contrib\cmake\build\proto_text.vcxproj]
  C:\tensorflow\tensorflow\contrib\cmake\build\Release\proto_text.exe : fatal error LNK1120: 1 unresolved externals [C:\tensorflow\tensorflow\contrib\cmake\build\proto_text.vcxproj]

Metadata

Metadata

Assignees

Labels

staleThis label marks the issue/pr stale - to be closed automatically if no activitystat:awaiting responseStatus - Awaiting response from authorstat:community supportStatus - Community Support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions