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 Files From Sub-folders (Read 3332 times)
nat45929
Junior Member
**
Offline


Posts: 11
Joined: Feb 9th, 2015
Include Files From Sub-folders
Aug 27th, 2015 at 9:09pm
Print Post  
Hello,

I am trying to use submodules in git to store libraries instead of the Arudino system (not very portable). My directory structure is something like this:

sketch.ino
modules/CAN/CAN.h
modules/CAN/CAN.cpp

I am trying to include the CAN.h and CAN.cpp during compile time. The normal methods I have tried in C++ do not seem to work by just doing

Code (C++)
Select All
#include "modules/CAN/CAN.h" 



is there a way to make something like this work in Visual Studio?

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Include Files From Sub-folders
Reply #1 - Aug 27th, 2015 at 9:23pm
Print Post  
Not at the moment we are entirely Arduino compatible for folder structure which means no sub folders.

You can make Arduino libraries which might help.

Sub folders, shared folders and some others things are coming shortly.
  
Back to top
WWW  
IP Logged
 
nat45929
Junior Member
**
Offline


Posts: 11
Joined: Feb 9th, 2015
Re: Include Files From Sub-folders
Reply #2 - Aug 27th, 2015 at 9:28pm
Print Post  
Thanks! Like I said, I am trying to avoid using the Arduino library system so that I can use git submodules and package a project completely without having to do multiple clones.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Include Files From Sub-folders
Reply #3 - Sep 8th, 2015 at 2:22am
Print Post  
Sub folders are now supported in the latest release for vs2012>2015

Local libraries are also supported (see release notes, documentation coming soon)
« Last Edit: Sep 8th, 2015 at 2:23am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint