Skip to content

'unresolved external symbol' when using arrays of objects with not default destructors #4

@apotocki

Description

@apotocki

The following code snippet (as a driver code) causes "error LNK2019: unresolved external symbol "void __cdecl `eh vector destructor iterator'(void ,unsigned __int64,unsigned __int64,void (__cdecl)(void *))" (??_M@YAXPEAX_K1P6AX0@Z@Z) referenced in function "void __cdecl test(void)" (?test@@yaxxz)"

`struct foo
{
~foo() noexcept {}
};

void test()
{
foo vals[16];
}`

But I'm not really sure whether 'eh vector destructor iterator' stuff should be a part of vcrtl library or not.

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