0

I am encountering this issue, when i try to cross-compile bluez-4.101, to mipsel-linux target.

plugins/bluetoothd-hciops.o: In function `init_device':
hciops.c:(.text+0xadc0): undefined reference to `atexit'
hciops.c:(.text+0xadc8): undefined reference to `atexit'

Following are the compiler options and linker options that are specified

-lstdc++
-L has the path where the libstdc++.so is located
-nostdlib is not specified

Looking forward for your help.

Tobia Zambon
  • 7,479
  • 3
  • 37
  • 69

1 Answers1

0

Add

 #include <stdlib.h>

to the file.

Claudio
  • 10,614
  • 4
  • 31
  • 71