- 论坛徽章:
- 5
|
你的一堆bmp还有mp3资源都没有,编译了也没法跑啊………………
还有,你难道从来不管警告的么?
- || Compiling... using GNU C Compiler
- || !gcc -Wall "noname\2013-12-24-1.c" -lglut -lopengl32 -o ./output
- ||
- noname\2013-12-24-1.c|50 col 1| warning: missing braces around initializer [-Wmissing-braces]
- || GLint map[MAP_HEIGHT+4][MAP_WIDTH][2] = {0};
- || ^
- noname\2013-12-24-1.c|50 col 1| warning: (near initialization for 'map[0]') [-Wmissing-braces]
- noname\2013-12-24-1.c|51 col 1| warning: missing braces around initializer [-Wmissing-braces]
- || GLint net[MAP_HEIGHT+4][MAP_WIDTH] = {0};
- || ^
- noname\2013-12-24-1.c|51 col 1| warning: (near initialization for 'net[0]') [-Wmissing-braces]
- noname\2013-12-24-1.c|132 col 22| warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
- || GLbyte* recordName = "record";
- || ^
- || noname\2013-12-24-1.c: In function 'initMenu':
- noname\2013-12-24-1.c|580 col 9| warning: pointer targets in passing argument 1 of 'readImage' differ in signedness [-Wpointer-sign]
- || menuImage = readImage("0Menu.bmp");
- || ^
- noname\2013-12-24-1.c|243 col 7| note: expected 'GLbyte *' but argument is of type 'char *'
- || Image readImage(GLbyte* filename);
- || ^
- || noname\2013-12-24-1.c: In function 'initHelp':
- noname\2013-12-24-1.c|622 col 9| warning: pointer targets in passing argument 1 of 'readImage' differ in signedness [-Wpointer-sign]
- || helpImage = readImage("1Help.bmp");
- || ^
- noname\2013-12-24-1.c|243 col 7| note: expected 'GLbyte *' but argument is of type 'char *'
- || Image readImage(GLbyte* filename);
- || ^
- || noname\2013-12-24-1.c: In function 'initPlay':
- noname\2013-12-24-1.c|681 col 17| warning: pointer targets in passing argument 1 of 'readImage' differ in signedness [-Wpointer-sign]
- || backImage = readImage("2Back.bmp");
- || ^
- noname\2013-12-24-1.c|243 col 7| note: expected 'GLbyte *' but argument is of type 'char *'
- || Image readImage(GLbyte* filename);
- || ^
- || noname\2013-12-24-1.c: In function 'drawLevel':
- noname\2013-12-24-1.c|834 col 9| warning: pointer targets in passing argument 2 of 'integerToArray' differ in signedness [-Wpointer-sign]
- || integerToArray(level, charArray);
- || ^
- noname\2013-12-24-1.c|249 col 8| note: expected 'GLbyte *' but argument is of type 'char *'
- || GLvoid integerToArray(GLint n, GLbyte s[]);
- || ^
- || noname\2013-12-24-1.c: In function 'drawLine':
- noname\2013-12-24-1.c|857 col 9| warning: pointer targets in passing argument 2 of 'integerToArray' differ in signedness [-Wpointer-sign]
- || integerToArray(lines, charArray);
- || ^
- noname\2013-12-24-1.c|249 col 8| note: expected 'GLbyte *' but argument is of type 'char *'
- || GLvoid integerToArray(GLint n, GLbyte s[]);
- || ^
- || noname\2013-12-24-1.c: In function 'drawScore':
- noname\2013-12-24-1.c|882 col 9| warning: pointer targets in passing argument 2 of 'integerToArray' differ in signedness [-Wpointer-sign]
- || integerToArray(score, charArray);
- || ^
- noname\2013-12-24-1.c|249 col 8| note: expected 'GLbyte *' but argument is of type 'char *'
- || GLvoid integerToArray(GLint n, GLbyte s[]);
- || ^
- || noname\2013-12-24-1.c: In function 'initPause':
- noname\2013-12-24-1.c|986 col 9| warning: pointer targets in passing argument 1 of 'readImage' differ in signedness [-Wpointer-sign]
- || pauseImage = readImage("3Pause.bmp");
- || ^
- noname\2013-12-24-1.c|243 col 7| note: expected 'GLbyte *' but argument is of type 'char *'
- || Image readImage(GLbyte* filename);
- || ^
- noname\2013-12-24-1.c|987 col 9| warning: pointer targets in passing argument 1 of 'readImage' differ in signedness [-Wpointer-sign]
- || pause1Image = readImage("4Pause1.bmp");
- || ^
- noname\2013-12-24-1.c|243 col 7| note: expected 'GLbyte *' but argument is of type 'char *'
- || Image readImage(GLbyte* filename);
- || ^
- noname\2013-12-24-1.c|988 col 9| warning: pointer targets in passing argument 1 of 'readImage' differ in signedness [-Wpointer-sign]
- || continueImage = readImage("5Continue.bmp");
- || ^
- noname\2013-12-24-1.c|243 col 7| note: expected 'GLbyte *' but argument is of type 'char *'
- || Image readImage(GLbyte* filename);
- || ^
- || noname\2013-12-24-1.c: In function 'initOver':
- noname\2013-12-24-1.c|1046 col 9| warning: pointer targets in passing argument 1 of 'readImage' differ in signedness [-Wpointer-sign]
- || overImage = readImage("7Over.bmp");
- || ^
- noname\2013-12-24-1.c|243 col 7| note: expected 'GLbyte *' but argument is of type 'char *'
- || Image readImage(GLbyte* filename);
- || ^
- || noname\2013-12-24-1.c: In function 'initExit':
- noname\2013-12-24-1.c|1094 col 9| warning: pointer targets in passing argument 1 of 'readImage' differ in signedness [-Wpointer-sign]
- || exitImage = readImage("6Exit.bmp");
- || ^
- noname\2013-12-24-1.c|243 col 7| note: expected 'GLbyte *' but argument is of type 'char *'
- || Image readImage(GLbyte* filename);
- || ^
- || noname\2013-12-24-1.c: In function 'initRecord':
- noname\2013-12-24-1.c|1140 col 9| warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign]
- || record = fopen(recordName, "r");
- || ^
- In file included from noname\2013-12-24-1.c|5| 0:
- d:\mingw\i686-w64-mingw32\include\stdio.h|449 col 17| note: expected 'const char * __restrict__' but argument is of type 'GLbyte *'
- || FILE *__cdecl fopen(const char * __restrict__ _Filename,const char * __restrict__ _Mode) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
- || ^
- noname\2013-12-24-1.c|1144 col 17| warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign]
- || record = fopen(recordName, "wb");
- || ^
- In file included from noname\2013-12-24-1.c|5| 0:
- d:\mingw\i686-w64-mingw32\include\stdio.h|449 col 17| note: expected 'const char * __restrict__' but argument is of type 'GLbyte *'
- || FILE *__cdecl fopen(const char * __restrict__ _Filename,const char * __restrict__ _Mode) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
- || ^
- || noname\2013-12-24-1.c: In function 'getRecord':
- noname\2013-12-24-1.c|1153 col 9| warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign]
- || record = fopen(recordName, "wb");
- || ^
- In file included from noname\2013-12-24-1.c|5| 0:
- d:\mingw\i686-w64-mingw32\include\stdio.h|449 col 17| note: expected 'const char * __restrict__' but argument is of type 'GLbyte *'
- || FILE *__cdecl fopen(const char * __restrict__ _Filename,const char * __restrict__ _Mode) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
- || ^
- || noname\2013-12-24-1.c: In function 'setRecord':
- noname\2013-12-24-1.c|1162 col 9| warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign]
- || record = fopen(recordName, "wb");
- || ^
- In file included from noname\2013-12-24-1.c|5| 0:
- d:\mingw\i686-w64-mingw32\include\stdio.h|449 col 17| note: expected 'const char * __restrict__' but argument is of type 'GLbyte *'
- || FILE *__cdecl fopen(const char * __restrict__ _Filename,const char * __restrict__ _Mode) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
- || ^
- || noname\2013-12-24-1.c: In function 'readImage':
- noname\2013-12-24-1.c|1638 col 9| warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign]
- || if ((file = fopen(filename, "rb"))==NULL)
- || ^
- In file included from noname\2013-12-24-1.c|5| 0:
- d:\mingw\i686-w64-mingw32\include\stdio.h|449 col 17| note: expected 'const char * __restrict__' but argument is of type 'GLbyte *'
- || FILE *__cdecl fopen(const char * __restrict__ _Filename,const char * __restrict__ _Mode) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
- || ^
- noname\2013-12-24-1.c|1651 col 9| warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=]
- || printf("Width of %s: %lu\n", filename, img->width);
- || ^
- noname\2013-12-24-1.c|1655 col 9| warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=]
- || printf("Height of %s: %lu\n", filename, img->height);
- || ^
- || noname\2013-12-24-1.c: In function 'integerToArray':
- noname\2013-12-24-1.c|1792 col 9| warning: pointer targets in passing argument 1 of 'reverse' differ in signedness [-Wpointer-sign]
- || reverse(s);
- || ^
- noname\2013-12-24-1.c|1757 col 8| note: expected 'char *' but argument is of type 'GLbyte *'
- || GLvoid reverse(char s[])
- || ^
- || gcc returned 0
复制代码
|
|