Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Include Directories (Read 1630 times)
Evgeny Zhekaus
Junior Member
**
Offline


Posts: 37
Joined: Sep 19th, 2018
Include Directories
Oct 7th, 2019 at 8:04pm
Print Post  
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
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Include Directories
Reply #1 - Oct 8th, 2019 at 4:36pm
Print Post  
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: 37
Joined: Sep 19th, 2018
Re: Include Directories
Reply #2 - Oct 9th, 2019 at 7:35pm
Print Post  
Tim@Visual Micro wrote on Oct 8th, 2019 at 4: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
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


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