This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

getenv undefined reference

Hello,

I am trying to use lua script language on nrf52840 board using SES to compile and load code.

I already compiled and load some ble tutorials on nrf52840 and it works nicely.

My problem now is that I am trying to install lua script on the nrf kit.

I get the following error from gcc compiler concerning getenv() function that is  in standard library stdlib that

I included in my code:

1> C:/Program Files (x86)/SEGGER/SEGGER Embedded Studio for ARM 4.52c/gcc/arm-none-eabi/bin/ld: Output/ble_app_uart_pca10056_s140 Release/Obj/main.o: in function `main':
1> C:\BLE Projects\nRF515\examples\ble_peripheral\ble_app_uart/main.c:736: undefined reference to `getenv'

Please could you give some info on how to overcome this error or/and what is the best way to install lua script on nrf52840 board with segger.

Thank you in advance,

Best regards.

Related