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 Using the <string> library? (Read 4817 times)
laszlo.frank
Newbies
*
Offline


Posts: 7
Joined: Feb 27th, 2017
Using the <string> library?
Jun 26th, 2017 at 11:45am
Print Post  
I have the same issue with #include <string>.  Sad
Output is :
Compiling debug version of 'Firmata' for 'Arduino Leonardo'
 
Firmata.ino: 9:18: fatal error: string: No such file or directory
   #include <string>
   compilation terminated
Debug build failed for project 'Firmata'

Deep search enabled, version is 1705.8. If I r-click <string> in VS and select "Open Document <string>" it opens, so VS knows the location. 

Why is that so difficult to vMicro when the library is on the standard VC++ include path ? Is there a final solution to the above please ?

Thank you in advance.
« Last Edit: Jun 28th, 2017 at 9:34am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adding Library in Lib
Reply #1 - Jun 27th, 2017 at 11:19am
Print Post  
<string> is not part of the arduino tool chain. Visual Studio sometimes shows some windows intellisense which is not valid. You can see this easily because the path of the source code is not an arduino folder.

It's best to start with documentation for functions you want to use because the docs will also tell you which arduino source files to include.



  
Back to top
WWW  
IP Logged
 
laszlo.frank
Newbies
*
Offline


Posts: 7
Joined: Feb 27th, 2017
Re: Adding Library in Lib
Reply #2 - Jun 28th, 2017 at 7:30am
Print Post  
Thank you for the explanation, sad though.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adding Library in Lib
Reply #3 - Jun 28th, 2017 at 9:32am
Print Post  
I forgot to say that detection of lib code changes should also work better with the recent releases even in vs2013. There have been a lot of improvements since a year ago when you last installed the software.

As for the detection of new source code files that have been added to libraries, you should use vs2015 or 2017 because the shared project system works very nicely for arduino libraries that can be located in any folder.

Finally bear in mind that the "Build>Clean" commands clear out the compiler cache, that works even in your ancient version of the software and that the "reload tool chains" command will detect all lib changes (even newly added files).

Don't forget that vs2015 and 2017 are free so no excuse for not upgrading Smiley
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint