#include #include int main() { ecore_x_init(0); Ecore_X_Screen* screen = ecore_x_default_screen_get(); if (!screen) { printf("Error\n"); } int w, h; ecore_x_screen_size_get(screen, &w, &h); printf("%d, %d\n", w, h); return 0; } ecore_x_init이 되어있지 않으면ecore_x_default_screen은 crash가 난다.