Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Messages - gryzly123

Pages: [1]
1
Graphics / Re: Image Arrays?
« on: October 07, 2012, 08:56:00 pm »
It's a linker error, so it has nothing to do with his headers.

Yep, the admin is always right. I happened to include too much linkers in C::B. Sorry for the trouble of deleting this thread ;) Also thanks for explaining what these -d and -s variations mean :)

2
Graphics / Image Arrays?
« on: October 07, 2012, 08:35:07 pm »
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.png

Is 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 :)

Pages: [1]
anything