expected unqualified-id before ‘void’

I know this is a common error, but bear with me. This is the code which is giving me the error:
1
2
3
class BRDF {
	public:
		BRDF(void);  //THIS IS THE LINE 


I've just written the class, so it's not included anywhere yet. Any ideas?
1
2
3
4
5
6
7
8
9
10
11
class BRDF {
public:
BRDF(void); 
};


int main ()
{
  return (0);
  
}


That compiles without warning.
Last edited on
closed account (z05DSL3A)
Post some more code from abouve and bellow this code.
I can force a similar warning if I leave the semi-colon off the end of the class definition, and rip out the main function. Have you remembered the semi-colon at the end of your class definition?
Last edited on
Topic archived. No new replies allowed.