C++ Regarding Reference to a method
<p>I got a function at </p>

<pre><code>File2.cpp which contains the following code below

#include "File2.h"
//some codes in between

static float File2::computeData(string s,int a,int b,float c,float d)
{
float result;
//the compute code
return result;
}
</code></pre>

<p>at File2.h , i tried to declare it at my class</p>

<pre><code>Class File2
{
private:
//some variables
public:
static float computeData(string,int,int,float,float);
};
</code></pre>

<p>I get an error that say cannot declare member function static float Data::computeData(std::string,int ,int , float , float) to have static linkage [-fpermissive]</p>

<p>then also.. at my </p>

<p>Main.cpp</p>

<p>I was trying to use the function</p>

<pre><code>#include "File2.h"

float result;
result = computeData(string s,int a,int b,float c,float d);
</code></pre>

<p>and it give me computeData was not declared in this scope.. </p>

<p><strong>Sincerely thanks for all helps!</strong></p>
