Depois de dois dias inteiros tentando, resolvi enviar um eMail perguntando a respeito.
Um minuto depois de enviar o eMail, achei a solu??o.
Obrigado a todos.
English:
After two entire days trying to resolve, I?ve sended an eMail.
One minute after send the eMail, I?ve solved the problem.
Thank you, everybody.
PS:
Se algu?m estiver interessado na solu??o, avise que eu envio os detalhes.
If is anyone interested about this solution, let me know and I?ll send the deatils.---------------------------------
Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora!
Hi!
I?d like to know how you solved the problem.
I?m having a problem on my own with loading a tilemap, but it is due to
linkage problems. I have the habit of really creating many files when coding
a game (and I?m coding a 2D engine so you can imagine) so everything gets
more organized. So I?d like to know of you all, how do you manage your
project files? I mean, is there an easy way of linking many files with lots
of dependencies on one another, without getting stuck on linkage problems
such as multiple referencing? I?m using Dev-C++ and it really doesn?t
provide much feedback on where the problems are.
Thanks,
Carol_________________________________________________________________
Baixe agora o Windows Live Messenger! http://get.live.com/messenger/overview
There’s a common trick using the preprocessor commands #ifndef and #define.
Basically here’s how it goes.
In each of your header files (.h or .hpp whichever you are using), put this
at the very top of your header file:
#ifndef ENEMIES_H #define ENEMIES_H
That would be for example in my enemies.h file
Then at the bottom of the header file you put:
#endif
What does this do?
Well…it makes it so the first time a file sees “enemies.h” that it sees
all the definitions inside it and ENEMIES_H gets defined so that the next
time that file sees “enemies.h” the header file will for all intents and
purposes be empty. That way you get no multiple declarations.
Hi!
I?d like to know how you solved the problem.
I?m having a problem on my own with loading a tilemap, but it is due to
linkage problems. I have the habit of really creating many files when coding
a game (and I?m coding a 2D engine so you can imagine) so everything gets
more organized. So I?d like to know of you all, how do you manage your
project files? I mean, is there an easy way of linking many files with lots
of dependencies on one another, without getting stuck on linkage problems
such as multiple referencing? I?m using Dev-C++ and it really doesn?t
provide much feedback on where the problems are.