title: Member function redeclaration not allowed
body: <p>If I define the function in mainwindow.cpp the function works, but when I define it in radiobuttons.cpp, and attempt to call it from mainwindow.cpp, the project won't compile.</p>
  
  <p><strong>mainwindow.h</strong></p>
  
  <pre><code>    #ifndef MAINWINDOW_H
      #define MAINWINDOW_H        
      #include &lt;QMainWindow&gt;
  
      namespace Ui {
      class MainWindow;
      }
  
      class MainWindow : public QMainWindow
      {
          Q_OBJECT
  
          public:
              explicit MainWindow(QWidget *parent = 0);
  
              void build_radios();  //this function
  
              ~MainWindow();
  
      };    
  #endif // MAINWINDOW_H
  </code></pre>
  
  <p><strong>radiobuttons.cpp</strong></p>
  
  <pre><code>#include "mainwindow.h"
  #include "ui_mainwindow.h"
  
      void MainWindow::build_radios()
       {  
  
      //... some code
  
       }
  </code></pre>
  
  <p><strong>mainwindow.cpp</strong></p>
  
  <pre><code>#include "mainwindow.h"
  #include "ui_mainwindow.h"
  
  void MainWindow::radio_buttons();   //error: C2761: 'void MainWindow::build_radios(void)' : member function redeclaration not allowed
  
  MainWindow::MainWindow(QWidget *parent) :
      QMainWindow(parent),
      ui(new Ui::MainWindow)
  
  {
  
  radio_buttons();
  
  }
  </code></pre>