title: Why do I get " illegal instructions" error?
body: <p>This is the class</p>
  <pre><code>using namespace std;
  
  class Animal
  {
      public:
  
      Animal()
      {
          using std::cout;
  
          cout &lt;&lt; &quot;[+]Animal created...&quot;;
      }
    
      string makeSound(std::string name,std::string sound){
          
          using std::cout;
          
          cout&lt;&lt;name &lt;&lt;&quot;goes&quot;&lt;&lt;sound;
              
      }
          
      string eatsFood(std::string name,std::string food){
          
          using std::cout;
  
          cout&lt;&lt;name&lt;&lt;&quot; eats &quot; &lt;&lt;food;
      }
  };
  </code></pre>
  <p>Here is the source file</p>
  <pre><code>#include&lt;iostream&gt;
  #include&lt;conio.h&gt;
  #include&lt;string&gt;
  
  #include &quot;animal.h&quot;
  
  using namespace std;
  
  
  int main()
  {   
      Animal obj;
   
      obj.makeSound( &quot;dog&quot;,&quot;woof! woof!&quot;);
   
      obj.eatsFood(&quot;dog&quot;,&quot; Meat and vagitables&quot;);
   
      return 0;
  }
  </code></pre>