Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 28th, 2005, 08:44 AM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cannot open include file


In all my programs start to appear this message. What's happennig?


 fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory
Error executing cl.exe.
 
Old January 29th, 2005, 01:09 AM
Registered User
 
Join Date: Aug 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Check the following option in msvc++ 6.0, perhaps it will work.

Go to Tool menu and select Option. A dialog will appear. In this dialog, select Directories tab and set path of "Include files" to where <iostream.h> is placed on your system.

 
Old February 6th, 2005, 10:33 PM
ck ck is offline
Authorized User
 
Join Date: Dec 2004
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

visual c++ is very sensitive & a lot of nonsense....try out this include file #include <iostream.h> or #include <iostream>
both also can run & work but in different situation....



 
Old February 8th, 2005, 02:19 AM
Registered User
 
Join Date: Feb 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to rupsee Send a message via AIM to rupsee
Default

Add the following line just after the includes:
Code:
using namespace std;
or do the following:
Code:
std::cout << "Hello world" << std::endl;
may help....

 
Old February 14th, 2005, 04:55 PM
Authorized User
 
Join Date: Jul 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to merediths
Default


 I *think* ( it's been awhile) that #include "iostream.h" will include the "iostream.h" file in your project's directory, whereas #include <iostream.h> || #include <iostream> will include the one in your IDE's include path's. I know for sure that quotes cause it to check the current directory first, but I can't remember if it will search the include paths too.

note that <iostream> would be the appropriate C++ syntax.

Regards,
Meredith Shaebanyan






Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ Unable to open include file. Allen_T 08 C++ Programming 4 July 7th, 2016 01:43 PM
Include file morpheus BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 April 23rd, 2006 08:20 AM
difference between include file & include virtual crmpicco Classic ASP Basics 2 January 23rd, 2006 11:50 AM
Include File morpheus Beginning PHP 8 January 17th, 2006 09:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.