title: G++ include .rc files from cmd
body: <p>I've made a simple WIN32 project using resources (.rc files).</p>
  
  <p>When I compile with code::blocks the dialog box displays,
  but when compiling with g++ from cmd it doesn't.</p>
  
  <p>Trying to include the .rc as an argument to g++ results in this:<br>
  <code>main.rc: file not recognized: File format not recognized
  collect2.exe: error: ld returned 1 exit status</code></p>
  
  <p>How do I include the .rc file to g++ in cmd?</p>
  
  <p>Edit:
  I tried with windres doing:<br>
  <code>windres main.rc -o res.o</code><br>
  <code>g++ -c win_main.cpp resource.h -o source.o</code><br>
  <code>g++ -o Executable res.o source.o</code><br></p>
  
  <p>I get the same error but with <code>main.o</code> instead of <code>main.rc</code> not recognized.</p>