NVIDIA / flownet2-pytorch

Pytorch implementation of FlowNet 2.0: Evolution of Optical Flow Estimation with Deep Networks
Other
3.12k stars 739 forks source link

error You need C++14 to compile PyTorch #196

Open jiapei100 opened 4 years ago

jiapei100 commented 4 years ago
~/.local/lib/python3.8/site-packages/torch/include/c10/util/C++17.h:24:2: error: #error You need C++14 to compile PyTorch
 #error You need C++14 to compile PyTorch

Well, my PyTorch was builit with C++14 ALREADY...

Any suggestions?

fanbeatsman commented 4 years ago

I changed one line in /networks/*_package/setup.py in all the setup.py files from

cxx_args = ['-std=c++11']

to

cxx_args = ['-std=c++14']

and it worked for me.

Fatemeh-Tabatabaeii commented 3 years ago

I changed one line in /networks/*_package/setup.py in all the setup.py files from

cxx_args = ['-std=c++11']

to

cxx_args = ['-std=c++14']

and it worked for me.

It also worked for me, Thanks ;)