EDIT: Lol nevermind I happened to do a little more debug and found out it's not the problem with my code, but with the linkers. I deleted 75% of them and everything seems to work fine. I'm sorry for wasting the time of everybody reading this and beg for deleting this humiliation of my person First of all I'd like to say hello to everybody since this is my first post here. I started learning SFML1.6 three days ago and I've run to a problem I can't overcome.
I would like to have some buttons made from Sprites and dynamically load into them specific Images that would mark their current state.
If I understand well, I have to:
1) Create images
2) Load files to images
3) Create sprites
4) Set sprites' data (size, position etc.)
And finally I could put images to sprites freely. But...
SFML won't let me go past first point. I need the images to be one array,
Image GameLabelMark[37];
GameLabelMark[0].LoadFromFile("img/marker/mark0001.png");
GameLabelMark[1].LoadFromFile("img/marker/mark0002.png");
[...]
GameLabelMark[35].LoadFromFile("img/marker/mark0036.png");
GameLabelMark[36].LoadFromFile("img/marker/mark0037.png");
to be specific. But when CodeBlocks starts to compile, I get 38 random errors. The files involved in the log aren't my .cpps, but the ones from linkers (total mindrape to me).
Here's the link to the error log screenshot:
http://imageshack.us/a/img411/4144/errorlog.pngIs there something wrong with my code or are my demands from Image var-type too much?
I'm sorry if there was a thread about this and I couldn't find it or if my english is bad.
I can provide more code if needed, thanks in advance for the responds