Compiler

This is a discussion on Compiler within the C++ Programming forums, part of the General Programming Boards category; Hello, I can't get the borland compiler to run... I got the following message: Borland C++ 5.2 for Win32 Copyright ...

  1. #1
    Unregistered
    Guest

    Question Compiler

    Hello, I can't get the borland compiler to run... I got the following message:

    Borland C++ 5.2 for Win32 Copyright (c) 1993, 1997 Borland International
    primeiro.cpp:
    Error primeiro.cpp 1: Unable to open include file 'iostram.h'
    Error primeiro.cpp 6: Undefined symbol 'cout' in function main()
    Warning primeiro.cpp 8: 'bell' is assigned a value that is never used in function main()
    *** 2 errors in Compile ***


    The source code for my program is the following:

    #include <iostram.h>
    main()
    {
    char bell='\a';
    cout << "Bell" << bell;
    return 0;
    }

  2. #2
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    Buddy is #include<iostream.h> not iostram
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  3. #3
    Unregistered
    Guest
    Still not working ....

    Program:

    #include <iostream.h>

    main()
    {
    char bell='\a';
    cout << "Bell" << bell;
    return 0;
    }


    Error Message:

    Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
    primeiro.cpp:
    Error E2209 primeiro.cpp 1: Unable to open include file 'iostream.h'
    Error E2451 primeiro.cpp 6: Undefined symbol 'cout' in function main()
    Warning W8004 primeiro.cpp 8: 'bell' is assigned a value that is never used in function main()
    *** 2 errors in Compile ***

  4. #4
    www.entropysink.com
    Join Date
    Feb 2002
    Posts
    605
    Try <iostream> (no .h).

    Both compile & run fine on my Dev C++. Could be your paths are screwed.
    Visit entropysink.com - It's what your PC is made for!

  5. #5
    Registered User
    Join Date
    Apr 2002
    Posts
    200
    Remember the using directive, like so:
    Code:
    #include <iostream>
    using namespace std;
    int main() /*it is best to declare main as returning type int*/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 04:04 AM
  2. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  3. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 05:42 AM
  4. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 10:28 AM
  5. Bad code or bad compiler?
    By musayume in forum C Programming
    Replies: 3
    Last Post: 10-22-2001, 09:08 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21