Pointer and binary issues
Posted: Fri Apr 11, 2008 12:47 pm
Hi
Im getting really annoying messages from DJGPP (gcc) concerning the following code:
GCC keeps throwing:
Also, for this code...
I get...
What am I doing wrong?
Im getting really annoying messages from DJGPP (gcc) concerning the following code:
Code: Select all
unsigned int *pageTable;
pageTable = virtualBlock.startingEntry.pageDirectory[i];
pageTable = pageTable & 0xFFFFF000;
Code: Select all
error: invalid operands to binary &
Code: Select all
void *returnAddress = (void *) virtualBlock.startingEntry.pageDirectoryEntry * 1024 * 4096;
Code: Select all
error: invalid operands to binary *