title: I am using Dev-C++ and receiving a compiler error saying "collect2.exe" is receiving status of 1
body: <p>I have read other posts regarding this error but I have not been able to solve my problem. It could be something obvious with my code, but the code seems fine to me. The compiler log output is:</p>
  
  <pre><code>mingw32-make.exe -f "C:\Users\Michael\Desktop\Durham Courses\Summer 2015\OOP Object-Oriented Programming\Dev CPP Directory\Makefile.win" all
  
  g++.exe cash.o main.o -o Lab3Functions.exe -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib" -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib" -static-libgcc
  
  main.o:main.cpp:(.text+0x0): multiple definition of `cash(double, int&amp;, int&amp;, int&amp;, int&amp;, int&amp;, int&amp;, int&amp;)'
  
  cash.o:cash.cpp:(.text+0x0): first defined here
  
  collect2.exe: error: ld returned 1 exit status
  
  C:\Users\Michael\Desktop\Durham Courses\Summer 2015\OOP Object-Oriented Programming\Dev CPP Directory\Makefile.win:25: recipe for target 'Lab3Functions.exe' failed
  
  mingw32-make.exe: *** [Lab3Functions.exe] Error 1
  
  Compilation failed after 0.91 seconds with errors
  </code></pre>
  
  <p>Could it be this multiple definition bit toward the end? What I've done (as per my assignment) is created one file (cash.cpp) which contains the definition of cash function and then I've got:</p>
  
  <pre><code>#include "cash.cpp" 
  </code></pre>
  
  <p>at the top of my main. Is that not correct? </p>