Skip to content

ld.lld: error: undefined symbol but the symbol exists? #59536

@carlosgalvezp

Description

@carlosgalvezp

Hi!

We are bumping our compiler from 1ae33bf to 61311f3 and now we get the following linker error in our code:

ld.lld: error: undefined symbol: Eigen::Matrix<double, 2, 1, 0, 2, 1>::Matrix()
>>> referenced by foo.cpp
>>>               foo.pic.o
>>> did you mean: Eigen::Matrix<double, 2, 1, 0, 2, 1>::Matrix()
>>> defined in: bar.a

I'm not sure what the error message is trying to tell me - the symbol is clearly available, what exactly is the problem? I don't know what action I should take as a user to fix this.

To clarify, foo.cpp includes <Eigen/Core> which should provide the definition for Eigen::Matrix so I can't really tell what the problem is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clangClang issues not falling into any other category

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions