All pastes #171040 Raw Edit

Something

public text v1 · immutable
·published 2006-09-14 23:35 UTC
rendered paste body
/* Relavent part of main.c
 * WINDOW_WIDTH and WINDOW_HEIGHT are integers, not constants, is it possible to do this?
 * I get the values of WINDOW_WIDTH and WINDOW_HEIGHT from a config file
*/

GdkWindowAttr attr =
{
	WINDOW_TITLE, 0, 0, 0, WINDOW_WIDTH, WINDOW_HEIGHT, GDK_INPUT_OUTPUT, 
	NULL, NULL, GDK_WINDOW_TOPLEVEL, NULL, NULL, NULL, FALSE,
};



/*
In file included from main.c:13:
main.h:15: error: initializer element is not constant
main.h:15: error: (near initialization for ‘attr.width’)
main.h:15: error: initializer element is not constant
main.h:15: error: (near initialization for ‘attr.height’)
make: *** [all] Error 1
*/