Compilation Error: Missing iostream Library?

  • Thread starter Thread starter mkbh_10
  • Start date Start date
  • Tags Tags
    Linux
Click For Summary

Discussion Overview

The discussion revolves around a compilation error related to the inclusion of the iostream library in a programming context. Participants are addressing a specific homework problem involving error messages generated by the compiler.

Discussion Character

  • Homework-related
  • Technical explanation

Main Points Raised

  • One participant requests help identifying the problem based on a screenshot of error messages.
  • Another participant emphasizes the importance of understanding error messages and suggests that the real error is indicated within them.
  • A participant points out that the error message states "iostream.h, no such file or directory," expressing confusion about the cause.
  • Another participant asserts that there is no include file named iostream.h, implying that this is the source of the error.
  • A suggestion is made to change the include directive from <iostream.h> to <iostream> as a potential solution.

Areas of Agreement / Disagreement

Participants express differing levels of understanding regarding the error messages, with some providing corrective suggestions while others seek clarification. No consensus is reached on the best approach to resolve the issue.

Contextual Notes

The discussion does not clarify the specific programming environment or compiler being used, which may affect the applicability of the suggestions made.

mkbh_10
Messages
217
Reaction score
0

Homework Statement


I have uploaded the pic of the program and the errors shown , tell me where the problem is ?


Homework Equations




The Attempt at a Solution



http://i52.tinypic.com/67mpg4.png
 
Physics news on Phys.org
You won't always have other people to help you with these problems. You need to learn to read and understand those error messages. What do you think the error is? The problem is right there in one of the error messages. The biggest challenge in reading those messages is filtering out the secondary messages that result as a consequence of the real error.
 
it says iostream.h , no such file or directory , i don't know the reason for this error
 
Because there is no such thing as an include file named iostream.h.
 
Change
#include <iostream.h>
to
#include <iostream>
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K