Undefined reference to operator delete
Posted: Mon May 18, 2020 10:34 am
I made a simple logger for my OS to make the debugging process easier. (I'm at a stage where I don't even have the IDT set up for all IRQs and exceptions, let alone new and delete)
Whenever I try to add a virtual destructor it results in an undefined reference to operator delete.
I can obviously add a stub, but why does it even need operator delete here? What is it trying to delete?
It compiles and links successfully when I remove the virtual destructor (which is also fine I guess).
https://prnt.sc/sj41qh
https://prnt.sc/sj4165
EDIT: I added a stub and it's not actually getting called ever, im confused
Whenever I try to add a virtual destructor it results in an undefined reference to operator delete.
I can obviously add a stub, but why does it even need operator delete here? What is it trying to delete?
It compiles and links successfully when I remove the virtual destructor (which is also fine I guess).
https://prnt.sc/sj41qh
https://prnt.sc/sj4165
EDIT: I added a stub and it's not actually getting called ever, im confused