OP is clearly not messing with programming on modern systems. Hints:
• File name is “
kernel.c
• “
int32()” is an
old function for invoking a hardware interrupt (INT 32h) in DOS-mode programs
It continues to exist in various forms among libraries for programming operating systems.
@
nvthielen
The error message means you did not
#include the necessary header to use the
int32() function. (Or that you in some way mis-spelled the function name. IDK exactly what you are looking to use.)
When the compiler discovers that you are trying to use a function it knows nothing about, ancient C protocol is to assume that it is declared as:
int int32(...)
Which is very likely wrong, so your modern compiler (GCC, I presume?) is being very nice to you to point it out.
Questions about doing this kind of stuff (writing OSes) are typically better to ask over at
https://wiki.osdev.org/
If you are using the (ancient) Borland C++ 4.0 compiler (or something like that) under DosBox, then some of us here may be able to help, but honestly, it has been at least 20 years since I last even looked at code that old.
Good luck!