View Single Post
  #1 (permalink)  
Old December 9th, 2006, 11:51 PM
mastrgamr mastrgamr is offline
Authorized User
 
Join Date: Oct 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mastrgamr
Default help with compiling include files

i use the borland c++ compiler, i have all the link and .cfg files setup... when i first got the program it was working perfectly fine but i dont kno wat happend.
i even used the simplest code "hello world" but wen i compile it 3 errors come up:
>cannot open iostream.h (i've tried "iostream" by itself)
>it doenst even kno wat "endl" and "cout" functions are!!

what do i hav to setup to fix this????

heres the source code im tring to compile (i kno its correct)

// hello.cpp- Testing the Borland C++ Compiler
#include <iostream>
int main()
    {
    cout << "Hello, World!\n";
    }

and here are the errors that came up:

error E2209 C:programs\hello.cpp 2:unable to open include file 'iostream'
error E2451 C:\programs\hello.cpp 5: undefined symbol 'cout' in function main()

WHAT IS WRONG??????!!!

__________________
-Stuart Smith
Reply With Quote