I have the following code:
Which I am trying to compile with DJGPP and link with ld.Code:int print(char * String); //--------------------------------------------------------------------------- int main() { print("Loading Stovell - Rhymes with Novell..."); while (1) { } return 1; } //--------------------------------------------------------------------------- int print(char * String) { static int CurrPos = 0; static int CurrY = 0; static int CurrX = 0; char *vidmem = (char *) 0xb8000; int Y = 0; CurrPos = (CurrY * 80 * 2); CurrPos = CurrPos + CurrX; while (String[Y] != '\0') { vidmem[CurrPos] = String[Y]; // Print the letter CurrPos = CurrPos + 2; // Increase the counters CurrX = CurrX + 2; Y = Y + 1; } return 0; }
I get the following error:
Undefined reference to '___gxx_personality_v0'.
This is a linker error, not a gpp error, and I don't know why its added what seems like a function to the output file.
Does anyone know what this error means?



LinkBack URL
About LinkBacks


