Hey Guys
I have just moved my kernel to the next step by trying to use classes. The only problem is when i try and instatiate the class, i get linker errors when trying to compile.
The linker errors are all undefined reference to then a decorated name for the class.
Any Ideas
Peter
Classes in C++
Re:Classes in C++
Well, you need to add C++ run-time support.
whyme_t has info about that.
whyme_t has info about that.
Re:Classes in C++
LOL, Its amazing how you can overlook the simple things when you get wrapped up in testing your kernel.
I had forgot to compile the MemoryManger.cpp and add it to the list to be linked, whoops oh well.
Peter
I had forgot to compile the MemoryManger.cpp and add it to the list to be linked, whoops oh well.
Peter
Re:Classes in C++
Which files that the MemoryManager.cpp.
Do you mean how to get classes to compile or how to implement classes.
Peter
Do you mean how to get classes to compile or how to implement classes.
Peter
Re:Classes in C++
To have classes is easy just define your class, make sure you include it wherever you instantiate it. Then instantiate it and it will work. As long as you don't instansiate it on the freememory or whatever its called ie using new it will work.
Peter
Peter