Anyway, thought it would be nice to remove '-lsupc++' from the Altimit Makefile (init.cpp has the operators / functions I need) but it fails to link with following errors:
snip...
Code: Select all
abstractFS.o(.gnu.linkonce.d._ZTI9altimitIO+0x0): In function `hddIO::hddIO[not-in-charge]()':
abstractFS.cpp: undefined reference to `vtable for __cxxabiv1::__class_type_info'
abstractFS.o(.gnu.linkonce.d._ZTI5hddIO+0x0):abstractFS.cpp: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
Is this something I could overcome by adding some more functionality to init.cpp or do I just have to accept linking with libsupc++ / libstdc++?
As for the memory, I'm running out of things to try. Looking at the log of all my allocations / deallocations it seems that everything is being done cleanly, just the freed memory is never returned to the heap. Short of writing my own memory management, I can't think of anything else to try.
I am treating the memory much like a stack, i.e. the last allocated is first to be freed. The output log is quite long, so I won't paste it in here. I'm not sure it gives any clues to what is going wrong anyway, but for those interested here is a link http://home.comcast.net/~tomhawcroft/output.txt