Another undefined reference ISSUE...

AlexESP32
Posts: 65
Joined: Thu Oct 03, 2019 9:41 am

Another undefined reference ISSUE...

Postby AlexESP32 » Fri Dec 06, 2019 2:44 pm

Hello guys!

I want to include the http_server example in my components directory.

I added at Makefile:
EXTRA_COMPONENT_DIRS = $(IDF_PATH)/examples/common_components/protocol_examples_common
like in the example code of http_server.

Unfortunately the issue raise: /esp/hello_world/build/protocol_examples_common\libprotocol_examples_common.a(connect.o):(.literal.example_connect+0x4): undefined reference to `stop'
/esp/hello_world/build/protocol_examples_common\libprotocol_examples_common.a(connect.o):(.literal.example_connect+0x28): undefined reference to `start'
/esp/esp-idf/examples/common_components/protocol_examples_common/connect.c:77: undefined reference to `start'

Can somene help me / explain me the solution?

Thank you very much :)

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Another undefined reference ISSUE...

Postby ESP_Angus » Mon Dec 09, 2019 3:31 am

Hi Alex,

It looks like maybe the component config hasn't been included in the project correctly, which is odd.

If you run "make menuconfig" do you see the "Example Connection Configuration" submenu? If you check this, save the config, and then rebuild - does it work?


Angus

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 92 guests