Component Compile Problem

Stomper
Posts: 16
Joined: Tue Mar 31, 2020 10:33 pm

Component Compile Problem

Postby Stomper » Thu Feb 24, 2022 1:29 pm

We created a project from the blinky example.

And we added an own component to that project like this:
01.png
01.png (15.53 KiB) Viewed 1501 times
so the component itself uses i2c so I added following lines to CMakeLists.txt:
[Codebox]
idf_component_register(SRCS "mc_adau1701.c"
INCLUDE_DIRS "."
REQUIRES driver)
[/Codebox]

Editor shows no errors or mistakes, but on compile time, we get this error message, that the function in our project is not found:
02.png
02.png (18.33 KiB) Viewed 1501 times
Are we missing something? Is there any thing more to to to tell CMake that there is a component?

Best regards

Stomper
Posts: 16
Joined: Tue Mar 31, 2020 10:33 pm

Re: Component Compile Problem

Postby Stomper » Thu Feb 24, 2022 7:09 pm

Got it... was my own fault.

I tried to reference a static function :mrgreen: :lol: :oops:

Move along - nothing to see here. :mrgreen:

Who is online

Users browsing this forum: No registered users and 133 guests