1
Graphics / Re: LoadFromFile undefined reference problem
« on: September 27, 2016, 07:21:05 pm »
Thank you a plenty eXpl0it3r, this fixed my issue.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Don't listen what MasterDeveloper said. He seems to be a troll.Yes.
Do you link dynamically against SFML?
What's your compiler (Code::Blocks is an IDE not a compiler) and from where did you get SFML?
I would suggest editing the code so that mode is set to a fixed value and isn't changed by the program. Then try mode as 0,1 and 2 by changing the initialisation to see in which part of the program the problem is. If this doesn't change anything then you've narrowed down the problem to the initialisation, the draw call or the event handling. This may not completely solve the problem but it has helped me in the past and if you know where the problem is then it is a lot easier to correct. It is, after all entirely possible that the window contruction is okay and the problem is elsewhere which is stopping it from showing.It crashes when it calls any SFML - related function, apparently.
Also, why have you included <iostream> and <cmath>?
What bit Windows do you have? (x86 - x64)?x86
What mode are you using for compiling???
It was with me to. You may use release libs for debud or debug libs for release - this is the reason for crashing! So if you want to stop crashing use sfml-xxx-d.lib in linker when you compile the debug version of programm or sfml-xxx.lib for release version.I relinked the files and it still doesn't work.
gamePrototype.exe stopped workingThe window doesn't want to open, but the console still works.
An error caused a program to stop working correctly. Windows will close the program and notify you of available solutions.