cppdocs icon indicating copy to clipboard operation
cppdocs copied to clipboard

Minimal Example: 'torch/torch.h' file not found

Open d84-n1nj4 opened this issue 4 years ago • 0 comments

Hi, apologies if this is not an issue. I walked through the "Minimal Example" for Installing c++ Distributions of PyTorch, and I get through it with no issues. However, when I create the example-app.cpp file, clang throws an error 'torch/torch.h' file not found [clang: pp_file_not_found] (while in neovim) and this causes other issues in the file since it's not reading the next line #include <iostream>. Do I need to place libtorch somewhere within the project or somewhere else for it to be recognized by clang?

d84-n1nj4 avatar Dec 04 '20 02:12 d84-n1nj4