C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 1st, 2003, 10:24 AM
foe foe is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 34 foe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 4 sec
Reputation Power: 8
Send a message via ICQ to foe Send a message via AIM to foe
hello world cgi now working cant find iostream.h

bash-2.05a$ cc -o hello hello.c
hello.c:1:22: iostream.h: No such file or directory


this is to complile the c++ program

PHP Code:
#include <iostream.h>
main()
{
        
cout <<"Content-type: text/html\n\n";
        
cout <<"<html>\n";
        
cout <<"<body>\n";
        
cout <<"<h1>Hello World !</h1>\n";
        
cout << endl;



Thats the program, if anyone can tell me whats wrong, thanks. Getting this straight from a book.

Reply With Quote
  #2  
Old July 1st, 2003, 10:28 AM
foe foe is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 34 foe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 4 sec
Reputation Power: 8
Send a message via ICQ to foe Send a message via AIM to foe
used g++ instead of cc worked, mistake in the book.

Reply With Quote
  #3  
Old July 1st, 2003, 10:30 AM
foe foe is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 34 foe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 4 sec
Reputation Power: 8
Send a message via ICQ to foe Send a message via AIM to foe
noticed this book cdgi internet programing with c++ and c by Mark Felton has a TON of mistakes, does anyone know any other books for cgi and c++ Thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > hello world cgi now working cant find iostream.h


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT