sagegalynsky
@sagegalynsky
Программирую для Web

Что может быть не так?

Здравствуйте. Не могу понять в чем проблема. Не компилируется. Ошибок во весь экран:
root@debian:~/state-devs# make
gcc -c main.c -Wall -I. -std=gnu99 -pedantic -march=native -O2 -Wno-pointer-arit       h -Wno-address
In file included from configs.h:15:0,
                 from main.c:12:
state.h:18:1: error: two or more data types in declaration specifiers
 bool state_run(void);
 ^
In file included from main.c:13:0:
state.h:18:1: warning: ISO C forbids forward parameter declarations [-Wpedantic]
 bool state_run(void);
 ^
In file included from /usr/include/stdio.h:33:0,
                 from devlist.h:15,
                 from log.h:16,
                 from main.c:14:
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/stddef.h:212:23: error: storage class        specified for parameter ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/stdio.h:35:0,
                 from devlist.h:15,
                 from log.h:16,
                 from main.c:14:
/usr/include/x86_64-linux-gnu/bits/types.h:30:23: error: storage class specified        for parameter ‘__u_char’
 typedef unsigned char __u_char;
                       ^
/usr/include/x86_64-linux-gnu/bits/types.h:31:28: error: storage class specified        for parameter ‘__u_short’
 typedef unsigned short int __u_short;
                            ^
/usr/include/x86_64-linux-gnu/bits/types.h:32:22: error: storage class specified        for parameter ‘__u_int’
 typedef unsigned int __u_int;
                      ^
/usr/include/x86_64-linux-gnu/bits/types.h:33:27: error: storage class specified        for parameter ‘__u_long’
 typedef unsigned long int __u_long;
                           ^
/usr/include/x86_64-linux-gnu/bits/types.h:36:21: error: storage class specified        for parameter ‘__int8_t’
 typedef signed char __int8_t;
                     ^
/usr/include/x86_64-linux-gnu/bits/types.h:37:23: error: storage class specified        for parameter ‘__uint8_t’
 typedef unsigned char __uint8_t;
                       ^
/usr/include/x86_64-linux-gnu/bits/types.h:38:26: error: storage class specified        for parameter ‘__int16_t’
 typedef signed short int __int16_t;
                          ^
/usr/include/x86_64-linux-gnu/bits/types.h:39:28: error: storage class specified        for parameter ‘__uint16_t’
 typedef unsigned short int __uint16_t;
                            ^
/usr/include/x86_64-linux-gnu/bits/types.h:40:20: error: storage class specified        for parameter ‘__int32_t’
 typedef signed int __int32_t;
                    ^
/usr/include/x86_64-linux-gnu/bits/types.h:41:22: error: storage class specified        for parameter ‘__uint32_t’
 typedef unsigned int __uint32_t;
                      ^
/usr/include/x86_64-linux-gnu/bits/types.h:43:25: error: storage class specified        for parameter ‘__int64_t’
 typedef signed long int __int64_t;
                         ^
/usr/include/x86_64-linux-gnu/bits/types.h:44:27: error: storage class specified        for parameter ‘__uint64_t’
 typedef unsigned long int __uint64_t;
                           ^
/usr/include/x86_64-linux-gnu/bits/types.h:52:18: error: storage class specified        for parameter ‘__quad_t’
 typedef long int __quad_t;
                  ^
/usr/include/x86_64-linux-gnu/bits/types.h:53:27: error: storage class specified        for parameter ‘__u_quad_t’
 typedef unsigned long int __u_quad_t;
                           ^
In file included from /usr/include/stdio.h:35:0,
                 from devlist.h:15,
                 from log.h:16,
                 from main.c:14:
/usr/include/x86_64-linux-gnu/bits/types.h:124:25: error: storage class specifie       d for parameter ‘__dev_t’
 __STD_TYPE __DEV_T_TYPE __dev_t; /* Type of device numbers.  */
                         ^
/usr/include/x86_64-linux-gnu/bits/types.h:125:25: error: storage class specifie       d for parameter ‘__uid_t’
 __STD_TYPE __UID_T_TYPE __uid_t; /* Type of user identifications.  */
                         ^
/usr/include/x86_64-linux-gnu/bits/types.h:126:25: error: storage class specifie       d for parameter ‘__gid_t’
 __STD_TYPE __GID_T_TYPE __gid_t; /* Type of group identifications.  */
                         ^
/usr/include/x86_64-linux-gnu/bits/types.h:127:25: error: storage class specifie       d for parameter ‘__ino_t’
 __STD_TYPE __INO_T_TYPE __ino_t; /* Type of file serial numbers.  */
                         ^
/usr/include/x86_64-linux-gnu/bits/types.h:128:27: error: storage class specifie       d for parameter ‘__ino64_t’
 __STD_TYPE __INO64_T_TYPE __ino64_t; /* Type of file serial numbers (LFS).*/
                           ^
/usr/include/x86_64-linux-gnu/bits/types.h:129:26: error: storage class specifie       d for parameter ‘__mode_t’
 __STD_TYPE __MODE_T_TYPE __mode_t; /* Type of file attribute bitmasks.  */
                          ^
/usr/include/x86_64-linux-gnu/bits/types.h:130:27: error: storage class specifie       d for parameter ‘__nlink_t’
 __STD_TYPE __NLINK_T_TYPE __nlink_t; /* Type of file link counts.  */
                           ^
/usr/include/x86_64-linux-gnu/bits/types.h:131:25: error: storage class specifie       d for parameter ‘__off_t’
 __STD_TYPE __OFF_T_TYPE __off_t; /* Type of file sizes and offsets.  */
                         ^
/usr/include/x86_64-linux-gnu/bits/types.h:132:27: error: storage class specifie       d for parameter ‘__off64_t’
 __STD_TYPE __OFF64_T_TYPE __off64_t; /* Type of file sizes and offsets (LFS).         */
                           ^
/usr/include/x86_64-linux-gnu/bits/types.h:133:25: error: storage class specifie       d for parameter ‘__pid_t’
 __STD_TYPE __PID_T_TYPE __pid_t; /* Type of process identifications.  */
                         ^
/usr/include/x86_64-linux-gnu/bits/types.h:134:26: error: storage class specifie       d for parameter ‘__fsid_t’
 __STD_TYPE __FSID_T_TYPE __fsid_t; /* Type of file system IDs.  */
                          ^
/usr/include/x86_64-linux-gnu/bits/types.h:135:27: error: storage class specifie       d for parameter ‘__clock_t’
 __STD_TYPE __CLOCK_T_TYPE __clock_t; /* Type of CPU usage counts.  */
                           ^
/usr/include/x86_64-linux-gnu/bits/types.h:136:26: error: storage class specifie       d for parameter ‘__rlim_t’
 __STD_TYPE __RLIM_T_TYPE __rlim_t; /* Type for resource measurement.  */
                          ^
/usr/include/x86_64-linux-gnu/bits/types.h:137:28: error: storage class specifie       d for parameter ‘__rlim64_t’
 __STD_TYPE __RLIM64_T_TYPE __rlim64_t; /* Type for resource measurement (LFS).         */
                            ^
/usr/include/x86_64-linux-gnu/bits/types.h:138:24: error: storage class specifie       d for parameter ‘__id_t’
 __STD_TYPE __ID_T_TYPE __id_t;  /* General type for IDs.  */
                        ^
/usr/include/x86_64-linux-gnu/bits/types.h:139:26: error: storage class specifie       d for parameter ‘__time_t’
 __STD_TYPE __TIME_T_TYPE __time_t; /* Seconds since the Epoch.  */
                          ^
/usr/include/x86_64-linux-gnu/bits/types.h:140:30: error: storage class specifie       d for parameter ‘__useconds_t’
 __STD_TYPE __USECONDS_T_TYPE __useconds_t; /* Count of microseconds.  */
                              ^
/usr/include/x86_64-linux-gnu/bits/types.h:141:31: error: storage class specifie       d for parameter ‘__suseconds_t’
 __STD_TYPE __SUSECONDS_T_TYPE __suseconds_t; /* Signed count of microseconds.         */
                               ^
/usr/include/x86_64-linux-gnu/bits/types.h:143:27: error: storage class specifie       d for parameter ‘__daddr_t’
 __STD_TYPE __DADDR_T_TYPE __daddr_t; /* The type of a disk address.  */
                           ^
/usr/include/x86_64-linux-gnu/bits/types.h:144:25: error: storage class specifie       d for parameter ‘__key_t’
 __STD_TYPE __KEY_T_TYPE __key_t; /* Type of an IPC key.  */
                         ^
Makefile:12: ошибка выполнения рецепта для цели «main.o»
make: *** [main.o] Ошибка 1
root@debian:~/state-devs#
  • Вопрос задан
  • 1309 просмотров
Пригласить эксперта
Ответы на вопрос 1
AtomKrieg
@AtomKrieg
Давай я поищу в Google за тебя
Google: two or more data types in declaration specifiers

Первый ответ: stackoverflow.com/questions/2098973/two-or-more-da...

Забыли поставить точку с запятой перед bool state_run

Ну и дальше смотрите в гугле если это решение не походит.
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы