Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ API: Unresolved External Symbols #241

Open
GericoVi opened this issue Feb 26, 2025 · 0 comments
Open

C++ API: Unresolved External Symbols #241

GericoVi opened this issue Feb 26, 2025 · 0 comments

Comments

@GericoVi
Copy link
Contributor

I'm trying to integrate some torch_cluster functions into a C++ app, with libtorch and also torch_scatter. But I'm getting linker errors saying unresolved external symbol for radius, knn, and fps

I'm compiling on windows using MSVC. I'm pretty sure the project settings are correct in terms of additional libraries and includes since the linker does not complain about the use of scatter_max and scatter_sum in the code (seems to find these symbols fine) and libtorch.

Also interestingly, it works fine if I just call cluster::cuda_version(). The app compiles and runs. But as soon as I add, for example, a call to radius(), it can't find the symbol.

Surely this is addressed in #132, but presumably most tests and applications just use a torch jit model and not the manual functions. Seeing as graclus works in C++ in #70, this is possibly a Windows/MSVC issue. Anyone with experience here have some advice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant