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.

--
Jérémy

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to