Hi again.
I'm getting a strange compiler error that I just can't figure out how to fix.
the error reads
error: no matching function for call to ‘Position::Position()’
heres some of the offending code
Code:
food::food()
{
ImageFile("../Assets/node3.tga").load(foodImage_);
}
this structure is located in a different file, but is global
Code:
struct Position
{
int x_;
int y_;
Position(int x,int y) : x_(x), y_(y){}
};
as you can see, Position is a structure, so there isn't a constructor for it, and it doesn't link into the food constructor in any way.
what could be causing this?
If more code is needed to diagnose the problem, just say and I shall provide it
Thanks
ES