I have this c code:
extern "C" void main() {
*(char*)0xb8000 = "Q";
return;
}
and when I try to compile it whit this command: i386-elf-gcc -ffreestanding -m32 -g -c "kernel.cpp" -o "kernel.o"
I get this error:
i386-elf-gcc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
foes someone know how to fix it?
I tried reinstalling the cross compiler but nothing did it.
New contributor
Nicolas Prigge is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.