VS Arduino
Visual Micro >> Project Guidance >> Include files from different folders
https://www.visualmicro.com/forums/YaBB.pl?num=1410444862

Message started by Filipe Morais on Sep 11th, 2014 at 2:14pm

Title: Include files from different folders
Post by Filipe Morais on Sep 11th, 2014 at 2:14pm
I am currently working on several different projects, which however share some code (serial reading functions, etc...). For that reason, I which to have some .h and .cpp files in a common folder to be included in multiple projects. I realised from other thread that I cannot simply include the folder in the "Additional Include Directories" and use relative paths, so all my #include feature full paths. However, when I get all the includes right it doesn't compile thrashing out what seems like a huge list of random errors. Any idea on why this happens, or is there any other (better?) way to include code files from different folders?

Title: Re: Include files from different folders
Post by Visual Micro on Sep 11th, 2014 at 2:17pm
Hi Filipe,

To protect your code Visual Micro will only work with what is supported by Arduino. In this case you need to create a library or libraries then include then using "project>add/import sketch library". Then you will see the required format and can include manually or using the menu item.

So you must do what it says on arduino.cc.

Because we are arduino compatible this means that you can use the arduino.cc/forum for assistance with your arduino code

Thanks

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.