I think torch/torch.h is the canonical include for libtorch.
You didn’t show your command line, do you have -ltorch in it? You might also need caffe2 and/or c10 depending on the version you are on.
Best regards
Thomas