1
General / Mastering SFML Game Development - Sourcecode problems
« on: April 06, 2018, 08:25:49 am »
Hey,
i tried to build the sourcecode of this book and got many many errors. For example, i tried to build chapter twos sources. It took me a while but i could fix the errors. The thing is, this source could never compile. Header names in include-statements were written wrong, variable names were being reused, but assigned with different types which can never be casted into each other, doing unconst stuff in const functions and so on. So i shouldn't be the only one with those problems, but i found no other topic about that. Like i wrote, i fixed those compiler errors and got the build, but after starting, there is a segmentatino fault. Next step will be debugging, but if even chapter two has so many problems, i don't know if i want to go further with this book. I think at least the author had run this code and presumably some other people too. So maybe those problems are known and i don't have to fix them all by my own.
I know, this is a very special question and you cannot help me if you didn't tried to build and run this code. I just want to know if someone just solved the same issues.
ps: if someone wants to try it by himself, i made a CMakeLists.txt for chapter two.
Maybe i have some luck Have a nice day.
i tried to build the sourcecode of this book and got many many errors. For example, i tried to build chapter twos sources. It took me a while but i could fix the errors. The thing is, this source could never compile. Header names in include-statements were written wrong, variable names were being reused, but assigned with different types which can never be casted into each other, doing unconst stuff in const functions and so on. So i shouldn't be the only one with those problems, but i found no other topic about that. Like i wrote, i fixed those compiler errors and got the build, but after starting, there is a segmentatino fault. Next step will be debugging, but if even chapter two has so many problems, i don't know if i want to go further with this book. I think at least the author had run this code and presumably some other people too. So maybe those problems are known and i don't have to fix them all by my own.
I know, this is a very special question and you cannot help me if you didn't tried to build and run this code. I just want to know if someone just solved the same issues.
ps: if someone wants to try it by himself, i made a CMakeLists.txt for chapter two.
Maybe i have some luck Have a nice day.