Wiki: C++ Barebones [Mistake]
Posted: Sat Jan 10, 2009 7:51 am
Hello guys,
while reading the wiki regarding the C++ Barebone Kernel I found an error into the code in section "main.cpp". multiboot_data, in fact it's not declared and so the code won't compile. The code should be like this:
Unless you define multiboot_data with a typedef obvoiusly
while reading the wiki regarding the C++ Barebone Kernel I found an error into the code in section "main.cpp". multiboot_data, in fact it's not declared and so the code won't compile. The code should be like this:
Code: Select all
extern "C" void _main(void* mbd, unsigned int magic);
void _main( [b]void*[/b] mbd, unsigned int magic )
{
// write your kernel here
}