title: C Error between define and char pointer declaration
body: <p>I'm trying to learn a simple way to create a controllable window in Linux, and research led me to use SDL. I was on the second part of <a href="http://lazyfoo.net/tutorials/SDL" rel="nofollow noreferrer">http://lazyfoo.net/tutorials/SDL</a> where I load an image on the screen. I copied their code and created custom define values. This is my code:</p>
  
  <pre><code>#include &lt;SDL/SDL.h&gt;
  #define SDL_WINDOWPOS_UNDEFINED 0
  #define SCREEN_WIDTH 800
  #define SCREEN_HEIGHT 600
  #define SDL_WINDOW_SHOWN 1
  
  SDL_Window* gWindow;
  SDL_Surface* gScreenSurface;
  SDL_Surface* gHelloWorld;
  
  int init(){
  int success = 1;
  if( SDL_Init( SDL_INIT_VIDEO ) &lt; 0 )
  {
      printf( "SDL could not initialize! SDL_Error: %s\n", SDL_GetError() );
      success = 0;
  }
  else
  {
      gWindow = SDL_CreateWindow( "SDL Tutorial", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN );
      if( gWindow == NULL )
      {
      printf( "Window could not be created! SDL_Error: %s\n", SDL_GetError() );
      success = 0;
      }
      else
      {
      gScreenSurface = SDL_GetWindowSurface( gWindow );
      }
  }
  return success;
  }
  
  int loadMedia(){
  int success = 1;
  gHelloWorld = SDL_LoadBMP( "/circuit.png" );
  if( gHelloWorld == NULL )
  {
      printf( "Unable to load image! SDL Error: %s\n", SDL_GetError() );
      success = 0;
  }
  return success;
  }
  
  void close()
  {
  SDL_FreeSurface( gHelloWorld );
  gHelloWorld = NULL;
  SDL_DestroyWindow( gWindow );
  gWindow = NULL;
    SDL_Quit();
  }
  
  int main(int argc, char* args[]){
    init();
    loadMedia();
    close();
    return 0;
  }
  </code></pre>
  
  <p>When compiling it, even with the "-Wall" and "-Wextra" compiler flags turned on and the "-lSDL" parameter added, the first error I get is:</p>
  
  <pre><code>program.c:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token    
  </code></pre>
  
  <p>I then proceeded to add equals to the defines thinking I did something stupid, so my first few lines are now this:</p>
  
  <pre><code>#include &lt;SDL/SDL.h&gt;
  #define SDL_WINDOWPOS_UNDEFINED=0
  #define SCREEN_WIDTH=800
  #define SCREEN_HEIGHT=600
  #define SDL_WINDOW_SHOWN=1
  </code></pre>
  
  <p>When attempting to compile again, I see:</p>
  
  <pre><code>warning: missing whitespace after the macro name
  </code></pre>
  
  <p>and that's regarding each equals sign I put in. and I also see the same error as above.</p>
  
  <p>It didn't complain about SDL.h not being found.</p>
  
  <p>What am I doing wrong?</p>