title: You must select a host application to "run" a library
body: <p>I am working with Code::Blocks and trying to program with the C language. I have created a header file, an implementation file and the main. When I compile, I have no errors, but when I run it I get the following error.</p>
  
  <p>You must select a host application to "run" a library...</p>
  
  <p>The libraries are all in the same folder.</p>
  
  <p>I also did include the header files in my main program.</p>
  
  <p>I have tried on 2 different PCs, and it didn't work. i tried with a different piece of code and it worked flawlessly. </p>
  
  <p>What should I do?</p>
  
  <p>Thanks.</p>
  
  <p>EDIT: Solved.</p>
  
  <p>Go to Project -> Properties -> Build Targets</p>
  
  <p>From the 'Type' drop down list select 'Console Application' (in my case). </p>