Correct.
In C an enum is an int, where in C++, they are not the same.
So if you use g++ you get "extra" errors :)
The current DirectFB implementation is therefore correct..
Greets
Niels
Jérémy Morel 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.
--
Jérémy
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
--
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users