SFML / SFML-Game-Development-Book

Full and up-to-date source code of the chapters of the "SFML Game Development" book
Other
923 stars 231 forks source link

Update deprecated code in book sources to remove warnings #8

Open scottfurry opened 6 years ago

scottfurry commented 6 years ago

Building book examples against SFML latest (2.4.2) results in a few deprecation warnings. These warnings can be broken down into two cases:

Diff at pastebin updates code base to remove warnings during compile.

Bromeon commented 5 years ago

Thanks for the report. Upgrading deprecated methods is always a trade-off: on one hand we remove the warnings, but on the other we break compatibility with older SFML 2.x versions. Since the book claims to be compatible with SFML 2.0, while later 2.x versions will always be backwards-compatible, it might be better to ensure maximum compatibility.

However it seems like CMake finding SFML (2.5+) should also be updated, such a change could then come with a general overhaul (+fixing several compiler warnings meanwhile appearing).

nickphilomath commented 12 months ago

i cannot compine 9 and 10. others seem working fine i am using linux and makefile to build

image

image

eXpl0it3r commented 12 months ago

Make sure FLAC dev libs are installed