C++ instead o C
Posted: Sat Aug 07, 2004 6:41 am
I?d like to re-write a kernel in C++ instead of C. I read that you have to do something special to be able to use global/static objects?
I tried to do it like this article:
http://www.invalidsoftware.net/os/?the_id=11
BUT when Im linking, I get the errormessage:
Loader.o(.text+0x1):Loader.o: undefined reference to `__main'
Loader.o(.text+0xb):Loader.o: undefined reference to `__atexit'
and I have no idea why. They are stored in a file called support.cpp, which I compile and link. I use DJGPP and nasm.
I tried to do it like this article:
http://www.invalidsoftware.net/os/?the_id=11
BUT when Im linking, I get the errormessage:
Loader.o(.text+0x1):Loader.o: undefined reference to `__main'
Loader.o(.text+0xb):Loader.o: undefined reference to `__atexit'
and I have no idea why. They are stored in a file called support.cpp, which I compile and link. I use DJGPP and nasm.