Linking issues with torch

I am building a custom C++ shared library that uses pytorch C++ libraries. But I am getting one undefined symbol - “typeinfo for torch::jit::GraphAttr”. I have included torch and c10 into my target_link_libraries. Am I missing additional pytorch libraries to link ?

resolved the issue. It seems when I build pytorch code with
python setup.py install the shared object executables are installed without execution permission on files - as
-rw-r--r-- . After manually correcting file permissions with
chmod +x <file.so> , the link issues are resolved.