I have a cross compiler in my home folder on Ubuntu 13.10 (64-bit). I downloaded it here at the bottom of the page that says "Prebuilt Toolchains". When I try to compile something, it gives me the following:
cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory
After a short review, I found this one . I tried the commands that the author wrote for input; but they will not help me, since I have this problem with a cross-compiler from the home dictionary, and not with the system compiler. Can anyone help?
EDIT: Here is the file I am trying to cross-compile:
void print(char *message, int line,int ch){ char *vm=(char *)0xb8000; int i=(line*80*2); i=i+(ch*2); while(*message!=0){ if (*message=='\n'){line++; i=(line*80*2);} else {vm[i]=*message; i++; vm[i]=0x07; i++;} *message++;}} void kernel_main(){ print("Hello!\nHow do you like my kernel?",0,0);}
I also have an assembly file written in AT & T syntax that calls kernel_main ().
cross-compiling
Isaac D. Cohen
source share