I am slightly confused about using "extern" in my c code, when there is a global variable involved. I tried the following, and got a compilation error:
Main.c:
extern unsigned short *videobuffer;
//I also tried this in a separate and it failed with the same compilation error//
extern (unsigned short *)videobuffer;
lib.c:
unsigned short *videobuffer = (unsigned short *)0x6000000;
The error I received:
[COMPILE] Compiling main.c
main.c:16: error: expected identifier or '(' before 'unsigned'
make: *** [main.o] Error 1