[cfe-dev] Fwd: Weird linking problem on Windows

İsmail Dönmez ismail at donmez.ws
Wed Feb 18 10:09:34 PST 2015


On Wed, Feb 18, 2015 at 7:40 PM, Reid Kleckner <rnk at google.com> wrote:
> The GCC-style clang++ driver defaults to enabling C++ exceptions, but those
> aren't really supported on Windows. Disable them with -fno-exceptions, and
> the __cxa_call_unexpected error should go away. clang-cl doesn't have this
> problem because it disables exceptions by default. This is a change in
> behavior since 3.5, but it's a regression in a not-yet supported
> configuration, so I don't consider it a release blocker.

Thanks that fixes it.

> The operator delete missing symbol has to do with some sized operator delete
> C++14 dust that hasn't settled yet. We used to emit an implicit weak
> definition of sized operator delete, but that caused ELF linkers to pull in
> more static archive members causing link failures, so we recently stopped
> doing it. We should probably revert the default back to emitting a weak
> definition.

Makes sense. Thanks for the explanation.



More information about the cfe-dev mailing list