SFML community forums

Help => Graphics => Topic started by: Jamie_Edwards on December 16, 2015, 01:33:49 am

Title: Weird Eclipse Mars Error involving Vector2?
Post by: Jamie_Edwards on December 16, 2015, 01:33:49 am
Hi guys,

So I'm currently following the "SFML Game Development" from Packt Publishing and I've come up with a very unusual error from my compiler.

So I'm using Eclipse Mars with MinGW and half way through chapter one I end up with the following class:

Game.hpp:
(click to show/hide)

and I get the following errors from my compiler:
(click to show/hide)

The thing I don't understand is that I used Visual Studio 2015 previous to this and got a lot further into the book than here without any hitch or errors relating to Vector2.

So my question is, what is happening and more importantly, how do I get rid of the errors so I can continue in Eclipse and not have to go back to VS2015...

Thanks guys,

Jamie.
Title: Weird Eclipse Mars Error involving Vector2?
Post by: eXpl0it3r on December 16, 2015, 02:45:55 am
You posted the header code twice. Did you accidentally include Vector2.inl instead of Vector2.hpp?
Title: Re: Weird Eclipse Mars Error involving Vector2?
Post by: Jamie_Edwards on December 16, 2015, 03:00:31 am
I did modify the OP with the correct code for Game.cpp and it turns out you're right.

Because I've been ctr+shift+o'ing, it's been including everything I need... including .inl files. So thank you very much for the help, couldn't find anything previous to this before so I'll leave this here.