cjweeks / tensorflow-cmake

Integrate TensorFlow with CMake projects effortlessly
MIT License
331 stars 83 forks source link

libtensorflow_all.so: undefined reference to **** #35

Open Essenlin opened 6 years ago

Essenlin commented 6 years ago

Hi, When i build the examples, error occured.

libtensorflow_all.so: undefined reference to `tensorflow::OpDef_ArgDef::OpDef_ArgDef()'

SebastienLinker commented 6 years ago

I solved this error by adding the flag '--config=monolithic' when building tensorflow

vincentcaux commented 6 years ago

Worked for me, thanks!