Skip to content

C++ API: Unresolved External Symbols #241

Open
@GericoVi

Description

@GericoVi

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions