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 #include <iostream> causes constant compiling errors (Read 6301 times)
dinotomFL
Junior Member
**
Offline


Posts: 25
Location: Florida
Joined: Mar 28th, 2016
#include <iostream> causes constant compiling errors
May 3rd, 2016 at 11:10pm
Print Post  
Why does every program where I include iostream, not compile?

Quote:
FIDTesting.ino:8:20: fatal error: iostream: No such file or directory
:#include <iostream>
:compilation terminated
Error compiling project sources


That is the error, I'm not a C++ guy so I'm not as familiar with adding libraries as I would be in C#
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: #include <iostream> causes constant compiling errors
Reply #1 - May 4th, 2016 at 1:03pm
Print Post  
Don't think there is an IoStream for Arduino but it depends which board you are using?
  
Back to top
IP Logged
 
dinotomFL
Junior Member
**
Offline


Posts: 25
Location: Florida
Joined: Mar 28th, 2016
Re: #include <iostream> causes constant compiling errors
Reply #2 - May 4th, 2016 at 10:54pm
Print Post  
Isn't iostream a library for C++ and isn't arduino code C++? So shouldn't iostream work in arduino since in runs compiled c++?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: #include <iostream> causes constant compiling errors
Reply #3 - May 4th, 2016 at 10:58pm
Print Post  
Hi,

Arduino is gcc c++ and each board (or group of boards) have published tool chains. For example the Arduino Uno and Mega use the AVR toolchain.

You will see that each type of arduino board also has an "arduino core". If you click "vMicro>show hidden files" (with a project open) you will see the core added as short cuts to the project.

I think some extra confusion comes from the fact that we currently hijack/override the standard visual studio c++ system which will incorrectly show some normal windows c++ includes as being available.

Microsoft has released Clang compiler for Visual Studio so we will shortly switch intellisense to a much better system.
« Last Edit: May 4th, 2016 at 11:00pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: #include <iostream> causes constant compiling errors
Reply #4 - May 11th, 2016 at 4:04pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint