rakhisharma

Untitled

Apr 3rd, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.65 KB | None | 0 0
  1. rakhi@rakhi-Inspiron-3542:~$ gcc -o Animation Animation.c
  2. Animation.c: In function ‘main’:
  3. Animation.c:30:17: error: ‘SANS_SERIF_FONT’ undeclared (first use in this function)
  4.     settextstyle(SANS_SERIF_FONT,HORIZ_DIR,2);
  5.                  ^
  6. Animation.c:30:17: note: each undeclared identifier is reported only once for each function it appears in
  7. Animation.c:30:33: error: ‘HORIZ_DIR’ undeclared (first use in this function)
  8.     settextstyle(SANS_SERIF_FONT,HORIZ_DIR,2);
  9.                                  ^
  10. Animation.c:38:7: error: too many arguments to function ‘random’
  11.        temp1 = 1 + random ( 588 );
  12.        ^
  13. In file included from /usr/include/SDL/SDL_stdinc.h:40:0,
  14.                  from /usr/include/SDL/SDL_main.h:26,
  15.                  from /usr/include/SDL/SDL.h:30,
  16.                  from /usr/local/include/graphics.h:30,
  17.                  from Animation.c:1:
  18. /usr/include/stdlib.h:321:17: note: declared here
  19.  extern long int random (void) __THROW;
  20.                  ^
  21. Animation.c:39:7: error: too many arguments to function ‘random’
  22.        temp2 = 1 + random ( 380 );
  23.        ^
  24. In file included from /usr/include/SDL/SDL_stdinc.h:40:0,
  25.                  from /usr/include/SDL/SDL_main.h:26,
  26.                  from /usr/include/SDL/SDL.h:30,
  27.                  from /usr/local/include/graphics.h:30,
  28.                  from Animation.c:1:
  29. /usr/include/stdlib.h:321:17: note: declared here
  30.  extern long int random (void) __THROW;
  31.                  ^
  32. Animation.c:42:30: error: ‘XOR_PUT’ undeclared (first use in this function)
  33.        putimage(left, top, p, XOR_PUT);
  34.                               ^
  35. rakhi@rakhi-Inspiron-3542:~$
Advertisement
Add Comment
Please, Sign In to add comment