Adding .a file to project

Hi guys
have small issue with libneai.a file
just cannot use it in my project
add all files into /src folder
main.c:(.text.startup.main+0x1a): undefined reference to neai_oneclass_init' main.c:(.text.startup.main+0x38): undefined reference to neai_oneclass’

thanks for any advice

Without seeing neither your project structure nor your platformio.ini it’s a little bit guessing :wink:, but I think you’re missing some directive for linking libneai.

Adding an additional library for linking should work with something like that

build_flags =
    -lneai

If the library resides in a unusual place it could be necessary also to add the path to it with

   -L your_path

For more details please have a look at that.

Also check out https://community.platformio.org/t/how-to-use-a-static-library/42245.