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 libraries within included files (Read 2963 times)
Uwe
Newbies
*
Offline


Posts: 5
Joined: Dec 13th, 2015
libraries within included files
Dec 13th, 2015 at 5:00pm
Print Post  
Arduino Software 1.6.6 it is possible to include libraries within included files. But I have problems with such included libraries.
In the Arduino IDE 1.6.6. it works fine, the same sketch bings errors in Visual Studio 2015/Visual Micro (recent download).
Do I have something to configure or is this not (yet) supported at all?
« Last Edit: Dec 13th, 2015 at 5:02pm by Uwe »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: libraries within included files
Reply #1 - Dec 13th, 2015 at 5:37pm
Print Post  
Hi,

Yes the auto discovery feature of 1.6.6 hasn't been released in visual micro yet. I'm letting it stabalize as their implementation is also still maturing. 

It's also quite an inefficient system (from an intellisense perspective). 

Currently when you include a library in the master [sketch].ino the library paths are automatically generated for intellisense. This is also how pre-1.6.6 arduino versions detect the #includes for the compiler. 

The new 1.6.6 system scans code folders and recursively runs the toolchain.exe against all sources until it has resolved all paths. That's a big cpu overhead when editing code (but negligent compared to a build).

Therefore the new compiler dependency discovery needs to be implemented at the same time as an extended intellisense system. Otherwise the project will compile but the code editor will flag many extra errors.

There also needs to be a fallback for older hardware definitions to the existing system.

For now you have to do it the old way which is to also #include the additional libraries into the sketch.ino as normal. 

There will be a release with support for all these things within the next few weeks. Hope that helps.
  
Back to top
WWW  
IP Logged
 
Uwe
Newbies
*
Offline


Posts: 5
Joined: Dec 13th, 2015
Re: libraries within included files
Reply #2 - Dec 13th, 2015 at 6:07pm
Print Post  
Yes, this helps definitvely, thanks for the fast response.
So I will not use the 1.6.6 feature, at least not now Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: libraries within included files
Reply #3 - Dec 13th, 2015 at 7:58pm
Print Post  
Great. Just to be clear, you can include other libraries from libraries but also need to include in the main sketch.ino even if not used from the .ino. Otherwise it's all the same.
« Last Edit: Dec 13th, 2015 at 7:58pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint