[SOLVED][EDIT]Refrencing image.hpp for sf::RenderWindow???
Posted: Tue Feb 07, 2012 8:39 pm
<SOLVED>
I needed to re-install SFML XD.
Thank you Ginto8 and Nokurn :-D
</SOLVED>
Hello everyone!
Sorry to post such a nooby question, but I have tried everything on this.
First of all I am extremely happy to announce I have completed my game engine after 2 years of hard work
I want to thank every one here for putting up with my stupidity and helping me so much I do not know were
I would be without forums like this one :-D !
Now for the question:
My engine compiles/links fine. However I tried to copy/paste the project and I added a couple game object classes
into the code for a small demo I am making with it for my school science fair. It compiles fine, however I re-opened the
project to add in 4 lines of code and I tried just compiling it first without changing anything and bam the error. For some reason
(I am using SFML 1.6, IDE = VC++ 2008) sf::RenderWindow is declared but not defined. I tried copying the code into another project
I tried deleting the .lnk (link file) manually (several times) I tried cleaning the solution, I tried targeting different versions of SFML
(meaning either the -d version the -s version or the version without anything on the end), and combinations of the 4 and more (and of course standard
debugging techniques); no luck. I have come to find out that it is looking
in (SFML's)image.hpp for the definition of sf::RenderWindow were the only declaration that exists is:
It shows all the classic's of a linker error right? <reference> WRONG </reference>!! It shows up in the compiler every time I reference a member of
sf::RenderWindow but of course not when instantiating one. Seeing as I have to replace the entire collision system re-compilation is necessary (the .exe runs fine 0.0).
I have spent about 3 days on this, can someone please help.
Thanks for reading :-D
P.s I know I can sometimes have a hard time getting my point across, please tell me if you need me to re-phrase
-----EDIT-----
I changed the title to more accurately address the issue.
I needed to re-install SFML XD.
Thank you Ginto8 and Nokurn :-D
</SOLVED>
Hello everyone!
Sorry to post such a nooby question, but I have tried everything on this.
First of all I am extremely happy to announce I have completed my game engine after 2 years of hard work
I want to thank every one here for putting up with my stupidity and helping me so much I do not know were
I would be without forums like this one :-D !
Now for the question:
My engine compiles/links fine. However I tried to copy/paste the project and I added a couple game object classes
into the code for a small demo I am making with it for my school science fair. It compiles fine, however I re-opened the
project to add in 4 lines of code and I tried just compiling it first without changing anything and bam the error. For some reason
(I am using SFML 1.6, IDE = VC++ 2008) sf::RenderWindow is declared but not defined. I tried copying the code into another project
I tried deleting the .lnk (link file) manually (several times) I tried cleaning the solution, I tried targeting different versions of SFML
(meaning either the -d version the -s version or the version without anything on the end), and combinations of the 4 and more (and of course standard
debugging techniques); no luck. I have come to find out that it is looking
in (SFML's)image.hpp for the definition of sf::RenderWindow were the only declaration that exists is:
Code: Select all
namespace sf
{
class RenderWindow;
//...
}
sf::RenderWindow but of course not when instantiating one. Seeing as I have to replace the entire collision system re-compilation is necessary (the .exe runs fine 0.0).
I have spent about 3 days on this, can someone please help.
Thanks for reading :-D
P.s I know I can sometimes have a hard time getting my point across, please tell me if you need me to re-phrase
-----EDIT-----
I changed the title to more accurately address the issue.