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 Shared code across multiple solutions (Read 1608 times)
timiadu_cph
Newbies
*
Offline


Posts: 4
Joined: Jul 4th, 2015
Shared code across multiple solutions
Oct 31st, 2017 at 3:37pm
Print Post  
I am making  drivers for a master-slave communications system. Both master and slave will have shared code (I have made one solution for master, and one for slave). How/where can I place the code shared between the two solutions? (See image). I have tried some ideas, but the projects will not compile
Thanks guys Smiley
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Shared code across multiple solutions
Reply #1 - Oct 31st, 2017 at 6:29pm
Print Post  
Hi,

To do this with arduino you normally need to create an arduino library by following the arduino guidelines.

Visual Micro in Visual Studio provides shared projects but not in atmel studio. Visual studio is free for most so I recommend that.

http://www.visualmicro.com/post/2017/01/16/Arduino-Cross-Platform-Library-Develo...


« Last Edit: Oct 31st, 2017 at 6:30pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint