Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined reference error on deleting objects #172

Closed
RichCini opened this issue Aug 16, 2021 · 1 comment
Closed

Undefined reference error on deleting objects #172

RichCini opened this issue Aug 16, 2021 · 1 comment

Comments

@RichCini
Copy link

Hi. Just downloaded fresh archive to play with. On linking, the linker throws errors on a lot of the object files: "undefined reference to `operator delete(void*, unsigned int)'". Looks like it happens when deleting certain objects in the file system, process, and device core files using the "delete" command. Using g++ 9.3.0 on Ubuntu 20.04.

Any clues appreciated!
Thanks.
Rich

@RichCini
Copy link
Author

Appears this was answered under Issue #127. Add the following to file cxx.cc:

void operator delete(void * ptr, size_t size) { ::operator delete(ptr); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant