title: 'SDL_main' : must return a value
body: <p>I am trying to retreive content of websice in c++ usind SDL but it is giving me this error:</p>
  
  <blockquote>
    <p>'SDL_main' : must return a value</p>
  </blockquote>
  
  <p>my code is:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "SDL.h"
  #include "SDL_net.h"
  #include &lt;cstring&gt;
  
  int main(int argc,char** argv)
  {
      SDL_Init(SDL_INIT_EVERYTHING);
      SDLNet_Init();
  
      IPaddress ip;
      SDLNet_ResolveHost(&amp;ip,"www.linux.org",80);
  
      const char* http="GET / HTTP/1.1\nHost: www.linux.org\n\n";
  
      TCPsocket client=SDLNet_TCP_Open(&amp;ip);
  
      SDLNet_TCP_Send(client,http,strlen(http)+1);
  
      char text[10000];
  
      while(SDLNet_TCP_Recv(client,text,10000))
          std::cout &lt;&lt; text;
  
      SDLNet_TCP_Close(client);
  
      SDLNet_Quit();
      SDL_Quit();
  }
  </code></pre>
  
  <p>When I put return 0; at the end, it built project but it finished immediately after that
  (I am using vs2012)</p>
  
  <p><strong>UPDATE</strong></p>
  
  <pre><code>cout&lt;&lt;"Some message";
  </code></pre>
  
  <p>doesn't print anything, is it possible that I have configured my imports wrong? are those additional dependencies right? </p>
  
  <blockquote>
    <p>SDL.lib;SDL_net.lib;SDLmain.lib</p>
  </blockquote>
  
  <p>I don't know what else could be wrong ...</p>