Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming 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
  #1 (permalink)  
Old April 29th, 2006, 09:12 PM
Registered User
 
Join Date: Apr 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Total newbie fallen at first fence

Working through "Beginning Programming"
Trying to compile very first C++ file.
The file is saved as template.cpp to D:\ root.

// C++ code template
#include <iostream.h>
void main()
    {
        // code goes here
    }

When I run it I get this message:
Error E2209 d:\template.cpp 2: Unable to open include file iostream.h
*** 1 errors in Compile ***

The file iostream.h does exist in the Include folder.

Help! And thanks in advance.
Reply With Quote
  #2 (permalink)  
Old April 29th, 2006, 10:28 PM
Authorized User
 
Join Date: Mar 2005
Posts: 58
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to Alan-LB Send a message via Yahoo to Alan-LB
Default

iostream.h is a C library. Try using a C++ library - iostream - without the .h

Alan

Reply With Quote
  #3 (permalink)  
Old April 30th, 2006, 06:21 PM
Registered User
 
Join Date: Apr 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Alan, your answer had me stumped and sent me searching. Discovered that my free C++ compiler uses deprecated elements.
So my Wrox book published in 2005 is telling me how to use code and software which was out of date about 5 years ago.
Anyway I've got things working now. The search revealed that I had to create a couple of cfg files in the bin directory.
Thanks for pointing me in the right direction.
Alan.
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Total newbie to JSCRIPT-101 question rgouette Other Programming Languages 3 October 15th, 2007 12:28 PM
Getting the Total northwind XSLT 1 April 26th, 2007 03:40 AM
Sub Total Rjh Reporting Services 0 June 21st, 2006 04:11 PM
Grand Total mateenmohd Access 6 April 8th, 2005 07:30 AM





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