Mayank Agarwal wrote: > > Hi all, > > I am writing a sample code using DirectFB API GetId in the > following way and i am getting the following errors. > > DFBWindowDescription desc; > > desc.posx = 0; > desc.posy = 0; > desc.width = width; > desc.height = height; > > > > uts_directfb_window_get_id.c:62: error: expected '=', ',', ';', 'asm' or > '__attribute__' before '.' token > > uts_directfb_window_get_id.c:63: error: expected '=', ',', ';', 'asm' or > '__attribute__' before '.' token > > uts_directfb_window_get_id.c:64: error: expected '=', ',', ';', 'asm' or > '__attribute__' before '.' token > > uts_directfb_window_get_id.c:65: error: expected '=', ',', ';', 'asm' or > '__attribute__' before '.' token
This is coming from somewhere else, maybe a missing include (file not found). > uts_directfb_window_get_id.c: In function > 'utc_directfb_window_get_id_func_01': > > uts_directfb_window_get_id.c:126: warning: passing argument 2 of > 'dfbwindow->GetID' from incompatible pointer type You should use DFBWindowID for your variable. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev