Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in GCC build #14

Closed
rosterloh opened this issue Jun 22, 2015 · 1 comment
Closed

Errors in GCC build #14

rosterloh opened this issue Jun 22, 2015 · 1 comment

Comments

@rosterloh
Copy link
Contributor

Since the recent updates I getting the following errors

In file included from C:\Dev\bluetooth-wristband\lib\nRF51822\nordic-sdk\components\softdevice\s130\include/BLE.h:47:0,
                 from ../src/main.cpp:9:
C:\Dev\bluetooth-wristband\lib\nRF51822\nordic-sdk\components\softdevice\s130\include/ble_types.h:60:55: error: expected identifier before numeric constant
 #define BLE_UUID_UNKNOWN                              0x0000 /**< Reserved UUID. */
                                                       ^
C:\Dev\bluetooth-wristband\lib\BLE_API/ble/blecommon.h:29:5: note: in expansion of macro 'BLE_UUID_UNKNOWN'
     BLE_UUID_UNKNOWN                             = 0x0000, /**< Reserved UUID. */
     ^
C:\Dev\bluetooth-wristband\lib\nRF51822\nordic-sdk\components\softdevice\s130\include/ble_types.h:60:55: error: expected '}' before numeric constant
 #define BLE_UUID_UNKNOWN                              0x0000 /**< Reserved UUID. */
                                                       ^
C:\Dev\bluetooth-wristband\lib\BLE_API/ble/blecommon.h:29:5: note: in expansion of macro 'BLE_UUID_UNKNOWN'
     BLE_UUID_UNKNOWN                             = 0x0000, /**< Reserved UUID. */
     ^
C:\Dev\bluetooth-wristband\lib\nRF51822\nordic-sdk\components\softdevice\s130\include/ble_types.h:60:55: error: expected unqualified-id before numeric constant
 #define BLE_UUID_UNKNOWN                              0x0000 /**< Reserved UUID. */
                                                       ^
C:\Dev\bluetooth-wristband\lib\BLE_API/ble/blecommon.h:29:5: note: in expansion of macro 'BLE_UUID_UNKNOWN'
     BLE_UUID_UNKNOWN                             = 0x0000, /**< Reserved UUID. */
     ^
In file included from C:\Dev\bluetooth-wristband\lib\nRF51822\nordic-sdk\components\softdevice\s130\include/BLE.h:47:0,
                 from ../src/main.cpp:9:
C:\Dev\bluetooth-wristband\lib\nRF51822\nordic-sdk\components\softdevice\s130\include/ble_types.h:95:63: error: expected identifier before numeric constant
 #define BLE_APPEARANCE_UNKNOWN                                0 /**< Unknown. */
                                                               ^
C:\Dev\bluetooth-wristband\lib\BLE_API/ble/blecommon.h:59:5: note: in expansion of macro 'BLE_APPEARANCE_UNKNOWN'
     BLE_APPEARANCE_UNKNOWN                             =    0, /**< Unknown. */
     ^
C:\Dev\bluetooth-wristband\lib\nRF51822\nordic-sdk\components\softdevice\s130\include/ble_types.h:95:63: error: expected '}' before numeric constant
 #define BLE_APPEARANCE_UNKNOWN                                0 /**< Unknown. */
                                                               ^
C:\Dev\bluetooth-wristband\lib\BLE_API/ble/blecommon.h:59:5: note: in expansion of macro 'BLE_APPEARANCE_UNKNOWN'
     BLE_APPEARANCE_UNKNOWN                             =    0, /**< Unknown. */
     ^
C:\Dev\bluetooth-wristband\lib\nRF51822\nordic-sdk\components\softdevice\s130\include/ble_types.h:95:63: error: expected unqualified-id before numeric constant
 #define BLE_APPEARANCE_UNKNOWN                                0 /**< Unknown. */
                                                               ^
C:\Dev\bluetooth-wristband\lib\BLE_API/ble/blecommon.h:59:5: note: in expansion of macro 'BLE_APPEARANCE_UNKNOWN'
     BLE_APPEARANCE_UNKNOWN                             =    0, /**< Unknown. */

It seems that the 2 files ble_types.h from nRF51822 and blecommon.h from BLE_API are clashing. ble_types.h have #defines and blecommon.h uses enums

@rgrover
Copy link
Contributor

rgrover commented Jun 30, 2015

duplicate of #16

@rgrover rgrover closed this as completed Jun 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants