Page 3 of 3

Re: Constructors not called ???

Posted: Thu May 21, 2009 6:48 am
by quanganht
Ah, Planet Source Code! It has been a long long time since the last time I visit it.

EDIT: That project looks good. Clean and easy-to-understand code.
But there is still problems: it uses DJGPP. And another C++ kernel is Magneto also built under DJGPP. My code is identical to theirs, but their codes compile w/o errs or warnings (on DJGPP only, GCC generate errs ). Compiler specific ??? :|

EDIT 2: After inserting _dso_handle, _cxa_atexit , the code is compliable on GCC/Cygwin. And still need some lines to be Multiboot compatible.

But after that, it compiled and ran flawlessly, except "deprecated conversion from string constant to char*" warnings ( I hates them so :) )

EDIT 3: It's keyboard driver sucks! All kind of errors, and stops with Triple Fault.

SOLVED: Constructors not called

Posted: Fri May 22, 2009 9:21 am
by quanganht
I just rewritten all the kernel with the help of abuashraf
abuashraf wrote:Hi,
maybe this is useful.
Good luck
And here's the source code. I think it also fit for beginners who wants to stick with C++