The contents of the compilation error and how to resolve it.

Asked 1 years ago, Updated 1 years ago, 404 views

The compilation is not working.I used a different computer, but when I set the same settings, the compilation stopped working.I read the error, but I didn't understand it well, so I asked a question.
Environment

OS:ubuntu 18.04
IDE:Vscode
The same is true of the environment that we are verifying.

I'm a beginner at expressense, so I don't think I understand anything, but I'd appreciate it if you could give me guidance.

LD:nuttx 
arm-none-eabi-ld: /home/hogehoge/spresense/nuttx/staging/libapps.a(symtab_apps.o): (.rodata.g_exports+0x2cc): undefined reference to `system' 
Makefile: 155: recipe for target 'nuttx' failed 
make[2]:***[nuttx] Error 1 
make[2]—Out of directory '/home/hogehoge/spresense/nuttx/arch/arm/src' 
tools/Makefile.unix:420:recipe for target 'nuttx' 
failed make [1]: ***[nuttx] Error 2 
make[1]—Out of directory '/home/hogehoge/spresense/nuttx'
Makefile:113:recipe for target 'all' 
make: ***[all] Error 2 

c++ sense

2022-11-28 02:09

1 Answers

Based on the content of the link error, I suspect that you are building a low-double ELF application using the system() function without the System Command enabled.

Enable the following System Command (CONFIG_SYSTEM_SYSTEM) in the menuconfig before building.

->Application Configuration
 ->System Libraries and NSH Add-Ons
  [*] System Command

I'm sorry if I missed your expectations.


2022-11-28 11:44

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.