Error with Count Memory function in FAQs
Posted: Sun Sep 16, 2001 11:20 am
I'm having trouble compiling the direct-probing function that determines installed memory on the FAQ's part of this site. I'm using DJGPP. Here's the errors I'm getting:
system.c: In function `Get_Memory':
system.c:63: parse error before `:'
system.c:71: parse error before `:'
system.c:107: parse error before `:'
Line 63: __asm__ __volatile("movl %%cr0, %%eax":"=a"(cr0))::"eax");
Line 71: __asm__ __volatile__("movl %%eax, %%cr0", :: "a" (cr0 | 0x00000001 | 0x40000000 | 0x20000000) : "eax");
Line 107: __asm__ __volatile__("movl %%eax, %%cr0", :: "a" (cr0) : "eax");
Has anyone else received these errors? Please help.
system.c: In function `Get_Memory':
system.c:63: parse error before `:'
system.c:71: parse error before `:'
system.c:107: parse error before `:'
Line 63: __asm__ __volatile("movl %%cr0, %%eax":"=a"(cr0))::"eax");
Line 71: __asm__ __volatile__("movl %%eax, %%cr0", :: "a" (cr0 | 0x00000001 | 0x40000000 | 0x20000000) : "eax");
Line 107: __asm__ __volatile__("movl %%eax, %%cr0", :: "a" (cr0) : "eax");
Has anyone else received these errors? Please help.