Compilation error- function calling another function

Why do I get this and how do I fix it?

a.cpp(12) : error C2064: term does not evaluate to a function taking 1 arguments

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
static bool Security_Checked = false;
static bool Security_OK      = false;

extern "C" _declspec(dllexport) bool Check_Security (int type)

{
    bool result;
    bool Check_Security_int;

    if(!Security_Checked) {
      Security_Checked = true;
      if(!Check_Security_int(type)) Security_OK = true;
    }

    result = Security_OK;
    return (result);
}


bool Check_Security_int (int type)

{
    bool result = true;
    return(result);
}
You need to provide a prototype or move the function definition of Check_Security_int above its use.
Check line 8. Did you miss something there?
I missed that, Line 8 is wrong. Remove it and add prototype. At line 3, insert:
 
bool Check_Security_int (int type);
Topic archived. No new replies allowed.