On Thu, Oct 1, 2009 at 11:11 AM, Jérémy Morel <[email protected]>wrote:

> You're absolutely right ! Adding -ldirectfb solved the issue : I don't have
> to use g++ anymore, and I don't get the other error.
>
> However, I may be very wrong, but without testing, it seems like dsc.caps
>  = (int)DSCAPS_PRIMARY | (int)DSCAPS_FLIPPING would not help at all. The
> issue does not lie in the DSCAPS_PRIMARY | DSCAPS_FLIPPING but in the
> affectation to dsc.caps. dsc.caps is an enum, whereas DSCAPS_PRIMARY |
> DSCAPS_FLIPPING is an int. Adding the two casts would only confirm that it
> is an int, and would still return an error on affectation. I need to try it
> to be sure, but if I'm wrong could you tell me so ? It would mean that
> there's something that I did not get about types in C.
>
> +--------------------------------------------------------+
I didn't look up variable types and tried to just piece it together from the
mail.... but type cast the int to the correct enum then
i.e. dsc.caps  = (DFBSurfaceCapabilities)(DSCAPS_PRIMARY | DSCAPS_FLIPPING);
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to