cjweeks / tensorflow-cmake

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

I can't compiled the example #41

Open contactmat opened 6 years ago

contactmat commented 6 years ago

Hi I follow te README but whe I compile I can't link the main and neither the libtensorflow_all.so

I have a lot of undefined reference. I copy and paste a couple:

main.cc:(.text+0x13c): undefined reference to tensorflow::SessionOptions::SessionOptions()' /usr/local/lib/libtensorflow_all.so: undefined reference totensorflow::Tensor::ComputeFlatOuterDims(tensorflow::gtl::ArraySlice, long long)'

What I did wrong?

Thanks

zg9uagfv commented 5 years ago

i got the same issue. @contactmat did you fix it?