#include <stdio.h>
#include <X11/extensions/Xrandr.h>
int main(){
printf("\n%ix%i\n", XRRScreenSize.width, XRRScreenSize.height);
}
bash-2.05b# g++ ./1.cpp
In file included from 1.cpp:2:
/usr/include/X11/extensions/Xrandr.h:49: error: 'Bool' is used as a type, but
is not defined as a type.
/usr/include/X11/extensions/Xrandr.h:50: error: syntax error before `*' token
/usr/include/X11/extensions/Xrandr.h:51: error: 'Window' is used as a type, but
...
/usr/include/X11/extensions/Xrandr.h:93: error: `Display' was not declared in
this scope
/usr/include/X11/extensions/Xrandr.h:93: error: `dpy' was not declared in this
scope
/usr/include/X11/extensions/Xrandr.h:94: error: parse error before `*' token
/usr/include/X11/extensions/Xrandr.h:104: error: parse error before `*' token
/usr/include/X11/extensions/Xrandr.h:115: error: `Display' was not declared in
this scope
/usr/include/X11/extensions/Xrandr.h:115: error: `dpy' was not declared in this
scope
/usr/include/X11/extensions/Xrandr.h:115: error: `Window' was not declared in
this scope
/usr/include/X11/extensions/Xrandr.h:115: error: parse error before `)' token
/usr/include/X11/extensions/Xrandr.h:126: error: `Display' was not declared in
this scope
/usr/include/X11/extensions/Xrandr.h:126: error: `dpy' was not declared in this
scope
/usr/include/X11/extensions/Xrandr.h:126: error: parse error before `)' token
/usr/include/X11/extensions/Xrandr.h:127: error: `Screen' was not declared in
this scope
/usr/include/X11/extensions/Xrandr.h:127: error: `screen' was not declared in
this scope
/usr/include/X11/extensions/Xrandr.h:128: error: `Display' was not declared in
this scope
/usr/include/X11/extensions/Xrandr.h:128: error: `dpy' was not declared in this
scope
/usr/include/X11/extensions/Xrandr.h:128: error: `Window' was not declared in
...
/usr/include/X11/extensions/Xrandr.h:147: error: `event' was not declared in
this scope
1.cpp: In function `int main()':
1.cpp:5: error: parse error before `.' token
bash-2.05b#