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 No such file or Directory (Read 2256 times)
Douglas
Newbies
*
Offline


Posts: 2
Joined: Feb 5th, 2018
No such file or Directory
Feb 5th, 2018 at 1:01pm
Print Post  
Hi, 

we have a solution that includes a few projects and a library folder. Inside the library folder we have subfolders: Liba, LibB etc.

In my solution I created a new Arduino Library Project: LibC and placed it with the other Libraries.

I have included this library as reference to the project I am currently working on.
When I try and include files from this library I can only include files under the folder LibC. Any files in LibC/SubA shows up when I autocomplete the include, but when I try and compile it shows:  No such file or directory.
It compiles when I change the include to point to the exact location, but I can not do this for every file in all of the sub directories.

Is there something I need to do to automatically point to the correct subfolders within a folder?

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No such file or Directory
Reply #1 - Feb 5th, 2018 at 3:22pm
Print Post  
Does what you are trying to do work in arduino ide?
  
Back to top
IP Logged
 
Douglas
Newbies
*
Offline


Posts: 2
Joined: Feb 5th, 2018
Re: No such file or Directory
Reply #2 - Feb 6th, 2018 at 6:12am
Print Post  
Hi, 

This is a library we created using vMicro in visual studio, by adding a Arduino Library Project to our solution. It isn't a Arduino library that is installed and usable through the Arduino Libraries Manager. As far as I know, the Arduino IDE does not include libraries in this manner.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No such file or Directory
Reply #3 - Feb 6th, 2018 at 10:01pm
Print Post  
Hi,

I think you need to stick to the arduino rules which are to create an \src folder below the library where LibName.h will exist. Then your code goes in that folder or sub folders.

You should also have a library.properties in the root.

If you create a library in the arduino sketchbook libraries folder (normall documents/arduino/libraries) then the the arduino ide will also be happy with it.

Visual Micro allows you to create libraries in non-arduino locations which is one of the main reasons for adding the reference. However, in all other respects you must confirm to the Arduino Library Specification/guidelnes

If you have a valid lib structure then everything should work but make sure an include from the src folder is in some code. For example #include "mylibName.h". Then the lib will resolve paths and other sources from lib src\sub_folders could be used.

« Last Edit: Feb 6th, 2018 at 10:03pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint