[llvm-bugs] [Bug 13684] Explicitly deleted virtual member function causes link error

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 10 15:19:04 PST 2015


Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
             Status|REOPENED                    |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |FIXED

--- Comment #5 from Richard Smith <richard-llvm at metafoo.co.uk> ---
(In reply to comment #4)
> It appears that this bug is still not fixed with clang-700.1.76, shipped
> with Apple LLVM version 7.0.0, but error message slightly differs.
> Undefined symbols for architecture x86_64:
>   "___cxa_deleted_virtual", referenced from:
>       vtable for Base in test-9e36a3.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)

That's user error, unrelated to this bug. You need to use clang++ to link, not
just clang, to link against the relevant C++ standard libraries.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151210/931ca180/attachment.html>

More information about the llvm-bugs mailing list