2023-06-06 11:32 AM
2023-06-06 03:08 PM
Hello @DYenEmbedded ,
We will need more context concerning your issue.
Header files are only used during compilation (or cross compilation in your case), and are so not needed on the target. It is so like an "helper" for the compilation to say that this function exist and can be linked after the compilation.
When you work with OpenSTLinux, and when you try to cross compile an application, all the headers are provided by the SDK, the tool that you need to compile your app.
If you compile another software that does not come from ST, the needed headers are so outside of the SDK and you have to manage it yourself through putting them inside your source folder / header folder, and indicate their path into Makefile options.
That was to remind the basics. In your case, select.h is well inside the SDK, so you should not have issue with using the header. Please be sure that you well sourced your environment as mentioned in this article.
Kind regards,
Erwan.
2023-06-08 09:32 AM
Erwan, I needed to add include path to Makefile:
CFLAGS += -Wall -I $(SDKTARGETSYSROOT)/usr/include
This also led me to boost directory. Thanks for your prompt reply.
2023-06-08 02:27 PM
Hi @DYenEmbedded ,
Glad to see that you solved your issue.
Kind regards,
Erwan.
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'