title: Moving function to different file
body: <p>I had a function to get points inside a 3D arc working inside a file but, trying to order the code into the appropriate folders, I broke it, and I don't know why because I think I am including it correctly.</p>
  
  <p>Originally a lot of calculations were inside a file "messages.cpp", but it is supposed to have just the messages and the calculations should be in Calculations folder.</p>
  
  <p>So now messages.cpp is something like this:</p>
  
  <pre><code>#include "../../FGProcessorModule/Calculations/ArcToPoints.h"
  namespace myNamespace {
  void MsgProvider::onEvent{
  std::vector&lt;Formulas::LLPoint&gt; allPoints = ArcToPoints(center, start, end);
  }
  }
  </code></pre>
  
  <p>In "../../FGProcessorModule/Calculations/ArcToPoints.h" I have:</p>
  
  <pre><code>#ifndef ARCTOPOINTS_H
  #define ARCTOPOINTS_H
  
  #include blablabla
  
  namespace myNamespace{
  
  std::vector&lt;Formulas::LLPoint&gt; ArcToPoints (Formulas::LLPoint, Formulas::LLPoint, Formulas::LLPoint);
  
  }
  
  #endif /* ARCTOPOINTS_H */
  </code></pre>
  
  <p>And finally in "../../FGProcessorModule/Calculations/ArcToPoints.cpp" I have:</p>
  
  <pre><code>#include "ArcToPoints.h"
  namespace myNamespace{
  std::vector&lt;Formulas::LLPoint&gt; ArcToPoints (Formulas::LLPoint center, Formulas::LLPoint start, Formulas::LLPoint end){
          //Lots of calculations
  }
  }
  </code></pre>
  
  <p>I think everything is OK but I receive this error when I want to compile:</p>
  
  <blockquote>
    <p>undefined reference to `FVIS::ArcToPoints(Formulas::LLPoint,
    Formulas::LLPoint, Formulas::LLPoint)'</p>
  </blockquote>