Closed aracosta1 closed 7 years ago
Hi,
We all agree that it is not pretty atm. but normally, name should not collides:
#include <ble/Ble.h>
#include <ble.h>
ARM Internal Ref: IOTSFW-2094
I have seen his problem exporting to Em:block. The problem is the include statement in the nRF51822 code because it does not specify a path so it includes the first ble.h it found in the search path order the is the one from ble_api. I know the correct place to make changes should be the sdk, I'll try to raise the issue on the nRF51822 repository
This was reported on forum.mbed.com, and there was a reference to gcc4mbed, they had the same problem: http://forums.mbed.com/t/error-mbed-nordic-semi-ble-includes-algorithm-into-c-files/1110
I think this issue has been solved with: https://github.com/ARMmbed/nrf51-sdk/pull/26 which is included in nrf51-sdk version 2.4.0. @aracosta1 Could you comment on that ?
On case insensitive filesystems (Windows first) the two name collide and so often compilation fails because the compiler choose the first of the two file it find in its search path order.
This create big problem when tring to export from mbed online environment to offline build tools like EmBlock or other.
Is it possible to change the mane to something else like BLE_api.h or similar ?