Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Include Directories (Read 87 times)
Evgeny Zhekaus
Junior Member
**
Offline



Posts: 25
Include Directories
Oct 7th, 2019 at 9: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.
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10463
United Kingdom
Re: Include Directories
Reply #1 - Oct 8th, 2019 at 5: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.
Back to top
 
WWW  
IP Logged
 
Evgeny Zhekaus
Junior Member
**
Offline



Posts: 25
Re: Include Directories
Reply #2 - Oct 9th, 2019 at 8:35pm
 
Visual Micro wrote on Oct 8th, 2019 at 5:36pm:
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.


I am trying to add paths that allow header files to be referenced.

To compile additional .cpp I add them to the current project.
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10463
United Kingdom
Re: Include Directories
Reply #3 - Oct 10th, 2019 at 11: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";
Back to top
« Last Edit: Oct 10th, 2019 at 11:04am by Visual Micro »  
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print