-5

私は楽しみのためにCを学ぼうとしています。Linux ディストリビューションを使用しています。を使用するプログラムをコンパイルしようとしていますkbhit()。TurboC(http://www.sandroid.org/TurboC/#Download)でこれを行う方法を見つけました。

私は指示に従いましたがmake、私にこれを与えます:

gettext.c: Dans la fonction « gettextTurboC »:
gettext.c:93:13: warning: les cibles pointées dans l'affectation de « int8_t * » {alias « signed char * »} vers « uint8_t * » {alias « unsigned char * »} diffèrent dans la plage signée [-Wpointer-sign]
   TurboData = (int8_t *) dest;
             ^
In file included from TurboC.h:60,
                 from conio.h:49,
                 from gettext.c:42:
TurboC.h:250:14: error: expected « ) » before « int32_t »
 #define long int32_t
              ^~~~~~~
/usr/include/curses.h:1238:66: note: dans l'expansion de la macro « long »
 #define PAIR_NUMBER(a) (NCURSES_CAST(int,((NCURSES_CAST(unsigned long,(a)) & A_COLOR) >> NCURSES_ATTR_SHIFT)))
                                                                  ^~~~
gettext.c:124:10: note: pour correspondre à ce « ( »
  Color = PAIR_NUMBER (ch & A_COLOR);
          ^~~~~~~~~~~
gettext.c:125:23: warning: les cibles pointées dans le passage de l'argument 2 de « pair_content » diffèrent dans la plage signée [-Wpointer-sign]
  pair_content (Color, &dFore, &dBack);
                       ^~~~~~
In file included from TurboC.h:60,
                 from conio.h:49,
                 from gettext.c:42:
/usr/include/curses.h:746:28: note: « short int * » attendu mais l'argument est de type « uint16_t * » {alias « short unsigned int * »}
 extern NCURSES_EXPORT(int) pair_content (NCURSES_PAIRS_T,NCURSES_COLOR_T*,NCURSES_COLOR_T*);  /* implemented */
                            ^~~~~~~~~~~~
gettext.c:125:31: warning: les cibles pointées dans le passage de l'argument 3 de « pair_content » diffèrent dans la plage signée [-Wpointer-sign]
  pair_content (Color, &dFore, &dBack);
                               ^~~~~~
In file included from TurboC.h:60,
                 from conio.h:49,
                 from gettext.c:42:
/usr/include/curses.h:746:28: note: « short int * » attendu mais l'argument est de type « uint16_t * » {alias « short unsigned int * »}
 extern NCURSES_EXPORT(int) pair_content (NCURSES_PAIRS_T,NCURSES_COLOR_T*,NCURSES_COLOR_T*);  /* implemented */
                            ^~~~~~~~~~~~
make: *** [Makefile:126: gettext.o] Error 1

このエラーをどうするか本当にわかりません:

TurboC.h:250:14: error: expected « ) » before « int32_t »
#define long int32_t

誰か助けてくれませんか?

4

3 に答える 3