Constructors not called ???

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: Constructors not called ???

Post 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.
"Programmers are tools for converting caffeine into code."
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

SOLVED: Constructors not called

Post 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++
Attachments
src.rar
(6.13 KiB) Downloaded 51 times
Post Reply