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 and Verbose
  • 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 VS2017 - #Include in library and stetch (Read 310 times)
The_Specialist
Full Member
***
Online


Posts: 215
Joined: Jul 1st, 2020
VS2017 - #Include in library and stetch
Sep 9th, 2022 at 3:18pm
Print Post  
Dear,

Is it normal that I need to include my libraries in to my shetch if the are already included in my library? The thinks I need to include in my sketch are not in my sketch, only in the library.

Kind regards
Dave
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 1615
Joined: Feb 13th, 2019
Re: VS2017 - #Include in library and stetch
Reply #1 - Sep 9th, 2022 at 3:49pm
Print Post  
Are you using the vMicro > Add Library to add the library to your sketch?

The includes in your sketch only need to be to the LibraryName.h file generally, and you can remove any further includes added if you know which ones you need. 

You also need to ensure that you have NOT switched off vMicro>Compiler>Deep Search for Libraries. This allows libraries not included in the sketch to be discovered.

« Last Edit: Sep 9th, 2022 at 4:03pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
The_Specialist
Full Member
***
Online


Posts: 215
Joined: Jul 1st, 2020
Re: VS2017 - #Include in library and stetch
Reply #2 - Sep 9th, 2022 at 7:59pm
Print Post  
I did ad them, but I don't clone them. I think the reason will be that I switch off deep search for faster compiling. I have to keep this in mind.

Will it take more memory by added them in the sketch too?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Online


Posts: 11674
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017 - #Include in library and stetch
Reply #3 - Sep 9th, 2022 at 8:29pm
Print Post  
The linker command in toolchains is usually designed to include only the code that is actually used.

The amount of memory used is reported at the end of each build.
« Last Edit: Sep 9th, 2022 at 8:31pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint