How can I achieve deletion of StringWriter objects?
Hey everyone, I am using
avr-g++ compiler on Windows for an AVR chip . I need to delete a
StringWriter
object created from a pointer to PacketWriter
. As I define a destructor for StringWriter
wether virtual or not, it leads to this error and similar ones.
What could cause the 'undefined reference' error?
My PacketWriter.h:
StringWriter.h:
How can I achieve deletion of StringWriter
objects in this context?
@Middleware & OS2 Replies
I tried out C++ for this
Delete api need a pointer and you are pointing to a void* which is null like what is actually being deleted? What memory is being pointed that it should delete
Pass the object
Plus what you do every day there is something new with you a new issue its like this forum is your personal gpt or something
I don't see consistency in your issues or projects