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 std C++ libraries (Read 1769 times)
Arrygon
Newbies
*
Offline


Posts: 2
Joined: Sep 9th, 2018
std C++ libraries
Sep 9th, 2018 at 1:03pm
Print Post  
Hi
This is a really quick question... Is there a way to use std C++ libraries for Arduino projects like <cmath>, <algorithm>, maybe <ctime>... ?

I can only use C standard libraries...

It would really accelerate my projects.
I hope I wrote it in the correct section.
And sorry for my bad English Sad
« Last Edit: Sep 9th, 2018 at 1:07pm by Arrygon »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: std C++ libraries
Reply #1 - Sep 9th, 2018 at 1:12pm
Print Post  
It's good english Smiley

I think the simple answer is no. 


But you are an advanced user so here is some info...

The answer is relative to the micro-controller package you have selected. Visual Micro does not control this. Visual Micro just compiles whatever board/package instructions it finds.

This means that the compilers are different for different board architectures

The compilers are based on GCC

Some architectures such as atmel have external libraries that provide these capabilities. These libraries are different to arduino libraries and are usually in the form of a ".a" file. Such as "maths.a"

Visual Micro extends normal arduino by allowing ".a" files to be placed in a folder "project_folder\libs"

If you find a non-arduino library you want to use such as maths.a then it needs to be "project_folder\libs\maths.a" then it will be linked during the build process. 

Intellisense in VS will not use the ".a" files
  
Back to top
IP Logged
 
Arrygon
Newbies
*
Offline


Posts: 2
Joined: Sep 9th, 2018
Re: std C++ libraries
Reply #2 - Sep 9th, 2018 at 1:46pm
Print Post  
Thanks for quick response. I appreciate it. Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint