title: problems with fonctions differents in folders (Makefile)
body: <p>I have a message in my terminal due to the fact that differents functions / libraries were not declared. I use makefile, but it may be an error because of the headers but I can't find out. Here is a resume of the code + the terminal :</p>
  <p>coord.hpp :</p>
  <pre><code>#ifndef COORD_HPP
  #define COORD_HPP
  #include &lt;vector&gt;
  #include &lt;string&gt;    
  #include &lt;array&gt;
  using namespace std
  
  class Coord {     
      public:
      Coord();                   //constructor 1
      Coord(int lig, int col);   //constructor 2
  };
  #endif
  </code></pre>
  <p>coord.cpp:</p>
  <pre><code>#include &quot;doctest.h&quot;
  #include &lt;cstdlib&gt;
  #include &lt;iostream&gt;
  #include &lt;cassert&gt;
  #include &quot;coord.hpp&quot;
  
  Coord::Coord():Coord{0,0}{ 
  }
  Coord::Coord(int lig, int col):num_ligne{lig}, num_colonne{col}{
      assert(lig &gt;= 0 &amp;&amp; lig &lt;= 20 &amp;&amp; &quot;too much lignes&quot;);
      assert(col &gt;= 0 &amp;&amp; col &lt;= 20 &amp;&amp; &quot;too much columns&quot;);
  }
  </code></pre>
  <p>ants.hpp</p>
  <pre><code>#ifndef FOURMIS_HPP
  #define FOURMIS_HPP
  
  class Ants{
      public:
      Ants(Coord a, int n);   //constructor. 
      Coord coord();   //coordonates of one Ant
      int num();         //number of one Ant
  
      Coord fCoord;
      int fNum;
  };
  #endif
  </code></pre>
  <p>ants.cpp</p>
  <pre><code>#include &quot;coord.hpp&quot;
  #include &quot;fourmis.hpp&quot;
  
  Fourmi::Fourmi(Coord a, int n){
      fNum = n;
  }
  
  Coord Fourmi::coord(){
      return fCoord;
  }
  
  int Fourmi::num(){
      return fNum;
  }
  </code></pre>
  <p>So, here is my terminal :</p>
  <pre><code>my.name@jupyterhub:~/Project$ make test
  g++ -std=c++11 -Wall  -c place.cpp
  In file included from place.cpp:1:ants.hpp:6:17: error: expected ')' before 'a'
      6 |     Ants(Coord a, int n); 
        |           ~     ^~
        |                 )
  In file included from place.cpp:1:
  fourmis.hpp:9:5: error: 'Coord' does not name a type    9 |     Coord coord(); 
        |     ^~~~~
  fourmis.hpp:24:5: error: 'Coord' does not name a type
     24 |     Coord fCoord;
        |     ^~~~~
               ^~~~~~~~
  place.hpp:6:16: error: expected ')' before 'x'
      6 |     Place(Coord x);
        |          ~     ^~
        |   
  </code></pre>
  <ul>
  <li>And I skip the '<em>was not declared in this scope</em>' errors... My makefile is ok I think : it surely comes from the headers, if someone could help me...</li>
  <li>when I try to put a test int ants.cpp (with doctest) it puts me '<em>error: expected constructor, destructor, or type conversion</em>'. But when I try it in coord.cpp it is totally ok.</li>
  </ul>
  <p>A free hug for the one who can help me :)</p>