SamyPesse / How-to-Make-a-Computer-Operating-System

How to Make a Computer Operating System in C++

Home Page:https://samypesse.gitbook.io/how-to-create-an-operating-system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undefined reference error on deleting objects

RichCini opened this issue · comments

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

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); }