Jump to content

PlatformIO Arduino Uno library issue

Djeunut

I am making a project for school on an Arduino Uno.

We have to use some libraries that the teacher gave us and make some ourself.

I included them in my project and keep getting the same error.
When I make a new empty project and include the libraries there they are found immediately.
 

Does anyone know why this happens?

image.png

image.png

image.png

Link to comment
Share on other sites

Link to post
Share on other sites

In the warnings on the first image, it looks like the C/C++ extension doesn't know what compiler to use.

 

Hold Ctrl + P and type "Select IntelliSense Configuration" it should bring up a menu of compilers, select one and it should be able to locate your header files.

 

More info: https://code.visualstudio.com/docs/cpp/configure-intellisense#_how-to-configure-intellisense

Link to comment
Share on other sites

Link to post
Share on other sites

On 5/8/2024 at 2:37 PM, Ominous said:

In the warnings on the first image, it looks like the C/C++ extension doesn't know what compiler to use.

 

Hold Ctrl + P and type "Select IntelliSense Configuration" it should bring up a menu of compilers, select one and it should be able to locate your header files.

 

More info: https://code.visualstudio.com/docs/cpp/configure-intellisense#_how-to-configure-intellisense

It didn't give me any compilers to select.

Link to comment
Share on other sites

Link to post
Share on other sites

GX9dm09.png

 

There are no compiler options in the list above? Assuming they are building without issue, do any other projects you have open have a compiler selected or options available if you run the same command? You can always manually select a compiler using that UI.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×