Error Compiling / Error in C Natives - NRF52 BLE


#1

I have an error while trying to build an NRF52 example project. I’m using a Red Bear BLE Nano 2, I have been able to get a non BLE blink running perfectly.

The error is:

[info] Compiling C:/Users/willb/zerynth2/dist/r2.2.0/libs/official/nordic/nrf52_ble/csrc/ble_ifc.c
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 150 : expected identifier or ‘(’ before numeric constant
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘<<’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘|’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 150 : expected identifier or ‘(’ before numeric constant
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘<<’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘|’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 150 : expected identifier or ‘(’ before numeric constant
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘<<’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘|’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 150 : expected identifier or ‘(’ before numeric constant
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘<<’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘|’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 150 : expected identifier or ‘(’ before numeric constant
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘<<’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘|’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 150 : expected identifier or ‘(’ before numeric constant
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘<<’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘|’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 150 : expected identifier or ‘(’ before numeric constant
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘<<’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘|’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 150 : expected identifier or ‘(’ before numeric constant
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘<<’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘|’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 150 : expected identifier or ‘(’ before numeric constant
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘<<’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘|’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 150 : expected identifier or ‘(’ before numeric constant
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘<<’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘|’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 150 : expected identifier or ‘(’ before numeric constant
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘<<’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘|’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 150 : expected identifier or ‘(’ before numeric constant
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘<<’ token
[error] C:\Users\willb\zerynth2\dist\r2.2.0\stdlib__common/vhal_pins.h => line 29 : expected ‘)’ before ‘|’ token
[error] Error in C natives [—] in [C:/Users/willb/zerynth2/dist/r2.2.0/libs/official/nordic/nrf52_ble/csrc/ble_ifc.c] at line 0


#2

I have the same error but I’m programming the Hexiwear. I’m on Ubuntu 18.04
I have tried installing gcc-multilib but the issue still persists
I have tried updating zerynth studio but that does not fix it either.
Please reply


#3

Please let me know if you manage to fix it.

Also I’d like to add for anyone reading, I’m running this on Windows.


#4

Hi there @Avii_Ahuja and @Will_Baker!

Sorry for the trouble, I can confirm the problem and I’m personally working to fix it. The new Zerynth patch (which will be out in a week) will resolve the compilation issues.

Thanks for your understanding.