Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Undefined References

Timor Gruber edited this page Dec 26, 2018 · 2 revisions

This page lists all known issues regarding the undefined references issue which occurs during project linkage.

undefined reference to '__cxa_pure_virtual'

An easy fix is to add the following to your program's main source file:

extern "C" void __cxa_pure_virtual(void);
void __cxa_pure_virtual(void) { while(1); }

The contents of the __cxa_pure_virtual function can be any error handling code. This function will be called whenever a pure virtual function is called.

Also see What is the purpose of cxa_pure_virtual

Morty Proxy This is a proxified and sanitized view of the page, visit original site.