Having Compilation Issues with GCC
Posted: Sun Feb 08, 2009 10:59 pm
I am following JamesM's tutorial on rolling your own kernel, and when I am compiling the kernel (just a basic one), I get the following errors:
main.cpp:8: error: first argument of ‘int main(multiboot*)’ should be ‘int’
main.cpp:8: error: ‘int main(multiboot*)’ takes only zero or two arguments
main.cpp: In function ‘int main(multiboot*)’:
main.cpp:13: warning: deprecated conversion from string constant to ‘char*’
main.cpp:15: warning: deprecated conversion from string constant to ‘char*’
main.cpp:17: warning: deprecated conversion from string constant to ‘char*’
main.cpp:20: warning: deprecated conversion from string constant to ‘char*’
main.cpp:24: warning: deprecated conversion from string constant to ‘char*’
main.cpp:28: warning: deprecated conversion from string constant to ‘char*’
I am using gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12). Anyone have any ideas?
main.cpp:8: error: first argument of ‘int main(multiboot*)’ should be ‘int’
main.cpp:8: error: ‘int main(multiboot*)’ takes only zero or two arguments
main.cpp: In function ‘int main(multiboot*)’:
main.cpp:13: warning: deprecated conversion from string constant to ‘char*’
main.cpp:15: warning: deprecated conversion from string constant to ‘char*’
main.cpp:17: warning: deprecated conversion from string constant to ‘char*’
main.cpp:20: warning: deprecated conversion from string constant to ‘char*’
main.cpp:24: warning: deprecated conversion from string constant to ‘char*’
main.cpp:28: warning: deprecated conversion from string constant to ‘char*’
I am using gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12). Anyone have any ideas?