VS Arduino | |
Visual Micro >> Visual Studio 2017, 2019, 2022 >> Include Directories
https://www.visualmicro.com/forums/YaBB.pl?num=1570478645 Message started by Evgeny Zhekaus on Oct 7th, 2019 at 8:04pm |
Title: Include Directories Post by Evgeny Zhekaus on Oct 7th, 2019 at 8:04pm
I added Include Directories to the project (Configuration Properties > VC++ Directories...). However, I still get “No such file or directory” error.
There is no such a problem when I do the same in ordinary C++ Console App project. |
Title: Re: Include Directories Post by Visual Micro on Oct 8th, 2019 at 4:36pm
Hi, the Visual Studio project properties are only used for intellisense and considered read-only for Arduino.
Are you trying to add paths that allow header files to be referenced or add paths that allow additional .cpp/.c files to be compiled. |
Title: Re: Include Directories Post by Evgeny Zhekaus on Oct 9th, 2019 at 7:35pm Tim@Visual Micro wrote on Oct 8th, 2019 at 4:36pm:
I am trying to add paths that allow header files to be referenced. To compile additional .cpp I add them to the current project. |
Title: Re: Include Directories Post by Visual Micro on Oct 10th, 2019 at 10:04am
Great. Currently you have to add the includes as -I properties in extraFlags via the F4 project properties
-I"some path" -I"some path2"; If you follow the guide in yellow above you will see all the build variables such as, if I recall, "project_path" You can use {build variables} to make relative paths if required. -I"{project_path}/../../somepath" -I"some path2"; |
VS Arduino » Powered by YaBB 2.6.12! YaBB Forum Software © 2000-2024. All Rights Reserved. |