NASM call for external C++ function
问题 I am trying to call external C++ function from NASM. As I was searching on google I did not find any related solution. C++ void kernel_main() { char* vidmem = (char*)0xb8000; /* And so on... */ } NASM ;Some calls before section .text ;nothing special here global start extern kernel_main ;our problem After running compiling these two files I am getting this error: kernel.asm(.text+0xe): undefined reference to kernel_main' What is wrong here? Thanks. 回答1: There is no standardized method of