class refusing to accept external function

I have got a weird error were my class is refusing to accept a function that has been declared externally outside the class.

Do I need some denotation that I am using an external function or should I declare this function as a friend? This function draw_ball doesn't access any private elements.
1
2
3
4
5
6
7
8
9
10
11
12
 void draw_ball() {
  glColor3f(0.6,0.3,0.);
  MyCircle2f(0.,0.,RadiusOfBall);
 }

class CLetter
{
public:
virtual void draw()const
{	draw_ball();
}
};
Is the setup like that?

Because when draw_ball is actually under class CLetter, the compiler won't know what it is at compile time, which would cause errors. Other than that it could also be you put it in another namespace, in that case you'd have to use the scope operator.
There's nothing wrong with this code. What does the error say?
Topic archived. No new replies allowed.