Constructors are not called
Posted: Thu Oct 24, 2002 11:00 pm
Hi,
after i stopped writing a new operating system in C, i started rewriting it in C++ (because there are only a few systems written in C++, it's just like a challenge). I'm writing it with GCC and NASM. But there's a little problem. Not a real problem, because there are a lot of work arounds, but it's a little bit confusing.
The constructors of the classes are not called, when creating new instances. Why ?
The resulting binary format after compiling is real binary, not ELF.
Is it possible, that a compiler switch causes this problem ?
Has anyone a real good idea to fix this ?
Rene
after i stopped writing a new operating system in C, i started rewriting it in C++ (because there are only a few systems written in C++, it's just like a challenge). I'm writing it with GCC and NASM. But there's a little problem. Not a real problem, because there are a lot of work arounds, but it's a little bit confusing.
The constructors of the classes are not called, when creating new instances. Why ?
The resulting binary format after compiling is real binary, not ELF.
Is it possible, that a compiler switch causes this problem ?
Has anyone a real good idea to fix this ?
Rene