yemista wrote:I think it has something to do with the fact that your using C++ to develop an OS with no standard libraries available.
Since he doesn't use any standard library code, that wouldn't matter much, now would it?
kraks wrote:How do you declare the instance-variable(s) of class "test"? I hope you don't expect malloc to call the constructor?
1) If anything, it'd be new, not malloc.
2) new doesn't have anything to do with initializing member variables.
So let's start at the beginning. You tell us the constructor is not called. How did you make sure that this is, indeed, the case? (I am assuming that you made 100% sure that it's actually a fact, but I'd like to hear it from you instead of trying to figure it out myself.)
Edit: My GCC chokes on files not ending with a newline...