I tried to compile a program including this header file with g++:
1 2 3 4 5 6
|
#ifndef TEST_H
#define TEST_H
int double (int);
#endif
|
Then I got this:
1 2 3
|
In file included from test.cpp:2:0:
test.h:4:13: error: expected uqualified-id before 'int'
test.h:4:13: error: expected ')' before 'int'
|
There's not much I could have done wrong. What happened?
Last edited on
double is a type but you are using it as a function name (I think).
Yes, that's probably it. Thanks.