#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Posts
    34
    Rep Power
    14

    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.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Posts
    34
    Rep Power
    14
    used g++ instead of cc worked, mistake in the book.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Posts
    34
    Rep Power
    14
    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

IMN logo majestic logo threadwatch logo seochat tools logo