What does the error "expected ";" before obj" mean?
<p>I am wrtting a program in C++ using my own header file.</p>

<pre><code> //main.cpp
#include&lt;iostream&gt;
#include"operation.h"
using namespace std;
main()
{

   int a;

   cout &lt;&lt;"Enter the value a";
   cin&gt;&gt;a;

   //class name add
   //obj is object of add
  add obj;
  obj.fun(a);
}

//operation.h

class add
{

 void  fun(int b)
 {
    int c,d=10;
    c=d+b;
    cout&lt;&lt;"d="&lt;&lt;d;
  }
}
</code></pre>

<p>when I compile using g++ compiler in linux it is showing this error:</p>

<pre><code>expected ";" before obj* -&gt;*obj not declared in this scope
</code></pre>

<p>I don't understand this error, can someone help me?</p>
