'GOT_PEER_ADDRESS'的类型限定符冲突

时间:2018-07-23 16:52:55

标签: c esp32

make app

CC build / main / include.o

D:/Users/hello/esp/hello_world/SmartDoorBell/main/include.c:5:1: warning: data definition has no type or storage class
         GOT_MY_ADDRESS = BIT0;
         ^

D:/Users/hello/esp/hello_world/SmartDoorBell/main/include.c:5:1: error: type defaults to 'int' in declaration of 'GOT_MY_ADDRESS' [-Werror=implicit-int]

D:/Users/hello/esp/hello_world/SmartDoorBell/main/include.c:5:1: error: conflicting type qualifiers for
        'GOT_MY_ADDRESS'

In file included from D:/Users/hello/esp/hello_world/SmartDoorBell/main/include.c:1:0:

D:/Users/hello/esp/hello_world/SmartDoorBell/main/include.h:41:11: note: previous declaration of 'GOT_MY_ADDRESS' was here
     const int GOT_MY_ADDRESS;
               ^
D:/Users/hello/esp/hello_world/SmartDoorBell/main/include.c:6:1: warning: data definition has no type or storage class
     GOT_PEER_ADDRESS = BIT1;
     ^
D:/Users/hello/esp/hello_world/SmartDoorBell/main/include.c:6:1: error: type defaults to 'int' in declaration of 'GOT_PEER_ADDRESS' [-Werror=implicit-int]

D:/Users/hello/esp/hello_world/SmartDoorBell/main/include.c:6:1: error: conflicting type qualifiers for
    'GOT_PEER_ADDRESS'
    In file included from D:/Users/hello/esp/hello_world/SmartDoorBell/main/include.c:1:0:

D:/Users/hello/esp/hello_world/SmartDoorBell/main/include.h:42:11: note: previous declaration of 'GOT_PEER_ADDRESS' was here
         const int GOT_PEER_ADDRESS;
           ^
  

cc1.exe:某些警告被视为错误make [1]: *   [/home/hello/esp/esp-idf/make/component_wrapper.mk:286:include.o]   错误1:*   [D:/msys32/home/hello/esp/esp-idf/make/project.mk:468:   component-main-build]错误2

0 个答案:

没有答案