What does this mean? Arduino pro mini

C:\Users\mjk.08000\AppData\Local\Temp.arduinoIDE-unsaved2023027-16036-qyntvs.pbkha\sketch_jan27a\sketch_jan27a.ino:2:10: fatal error: iostream: No such file or directory
#include
^~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: iostream: No such file or directory

Hi can someone explain what this means, and how to fix it.

Could you please show the code?
Please insert it using code tags.

Google is you friend.

#include - Arduino Reference..

Could also mean that there is no iostream library for arduino.

Looks like an include that is missing the file name.

This is only because @mjk080023 did not follow the guidelines for correctly posting code:

https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966#use-code-tags

The forum supports a "safe" subset of HTML as post markup. Anything that appears to be an HTML tag which is not in the supported list of HTML tags is suppressed by the post renderer. An #include directive looks like an HTML tag under the following conditions:

  • Uses the angle bracket syntax
  • The filename does not have an extension (e.g., iostream instead of Servo.h)

So if I write this in my post:

#include <iostream>

it is rendered as this:

#include

But if I use the correct markup:

```
#include <iostream>
```

Then it is rendered correctly:

#include <iostream>

@mjk080023 please carefully read the "How to get the best out of this forum" guide and make sure to correctly post your code in the future to avoid this sort of confusion.

Thanks in advance for your cooperation.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.