Eclipse IDE+IDF: ERROR aboout "undefined reference to..."(A2DP_Source)

yangrf@jmu.edu.cn
Posts: 2
Joined: Sat Jul 22, 2023 2:39 am

Eclipse IDE+IDF: ERROR aboout "undefined reference to..."(A2DP_Source)

Postby yangrf@jmu.edu.cn » Sat Jul 22, 2023 3:00 am

Hi guys,
Recently I meet some problems when I compile the IDF example "A2DP_Source", it displays 44 errors as below:

:/espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/11.2.0/../../../../riscv32-esp-elf/bin/ld.exe: esp-idf/main/libmain.a(main.c.obj): in function `bt_av_notify_evt_handler':
D:/work/audio/ESP/micbt8/main/main.c:651: undefined reference to `esp_avrc_ct_send_set_absolute_volume_cmd'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

I'm sure that my compile enviroment is correct as I can compile and flash some examples, such as hello world, ...
I also tried vscode+IDF(a2dp_source), but got the same results! I dont know how to include the files to be compiled, as they are listed by cmake system, which is complicate for me.

I'm so tired these days, please help me.
Thanks for your reply and appreciate your answer.

Who is online

Users browsing this forum: Bing [Bot], ok-home and 80 guests