7 years, 4 months ago.

Error with building makefile offline exported project

Hi,

I am trying to compile this project offline

https://developer.mbed.org/teams/Bluetooth-Low-Energy/code/BLE_GATT_Example/

I have exported from mbed compiler using GCC option. However I am getting lot of errors when I invoke make VERBOSE=1. Some of the errors were related to -specs=nosys.specs which I am able to resolve. But this one I am unable to resolve.

C:\Users\srinathhs\workspace\BLE_GATT_Example>make Compile: BLE.cpp c:/program files (x86)/gnu tools arm embedded/5.4 2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv6-m/crt0.o: In function `_start': (.text+0x4e): undefined reference to `main' C:\Users\SRINAT1\AppData\Local\Temp\ccMsbcRY.o: In function `BLE::BLE(unsigned int)': BLE.cpp:(.text+0x19c): undefined reference to `createBLEInstance()' C:\Users\SRINAT1\AppData\Local\Temp\ccMsbcRY.o: In function `BLE::hasInitialized() const': BLE.cpp:(.text+0x1b4): undefined reference to `error' C:\Users\SRINAT1\AppData\Local\Temp\ccMsbcRY.o: In function `BLE::shutdown()': BLE.cpp:(.text+0x1f4): undefined reference to `error' C:\Users\SRINAT1\AppData\Local\Temp\ccMsbcRY.o: In function `BLE::getVersion()': BLE.cpp:(.text+0x22c): undefined reference to `error'

Be the first to answer this question.