Compiling C++

This is a discussion on Compiling C++ within the C++ Programming forums, part of the General Programming Boards category; I am a new at learning C++ programming. I have a Borland 5.51 compiler. I just typed and and made ...

  1. #1
    New Programmer
    Guest

    Compiling C++

    I am a new at learning C++ programming. I have a Borland 5.51 compiler. I just typed and and made an attempt to compile my first program. But, I recieved an error that says Fatal F1003 C:\Borland\ Include\stdcomp.h 5:Error directive: Must use C++ for STDCOMP.H. I thought that #include <iostream.h> was the opening header for the cout<<. When I configured my Borland 5.51 compiler during the earlier part of this year, I don't recall stdcomp.h being in the bcc32.cfg path. This is my code:

    #include <iostream.h>

    int main()
    {

    cout<<"Hey, you, I'm alive! Oh, and Hello World!";
    return 0;

    }

    So, do you have any idea were I went wrong.

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    is the file your compiling a .c or .cpp?
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  3. #3
    New Programmer
    Guest

    Reply

    I guess it is .cpp That is C++ isn't it?

  4. #4
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    well you need to be sure cause if its a .c then it won't compile and might give you that error.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  5. #5
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    ack...i absolutly postivolyyyy HATEE Borland C++ 5. somtimes I can't even figure it out. Don't feel bad. if i were you I'd go download a better compiler with an IDE like Dev-C++ at www.bloodshed.net. its the best free compiler out there

  6. #6
    New Programmer
    Guest

    Smile Follow-up

    Well, no-one, my compiler uses .cpp Thanks alot.

  7. #7
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    glad to help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie Compiling Problem
    By Deronius in forum C++ Programming
    Replies: 3
    Last Post: 06-15-2008, 12:23 PM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 03:39 PM
  3. Compiling
    By Dae in forum C++ Programming
    Replies: 7
    Last Post: 06-15-2005, 02:08 AM
  4. compiling and executing issue with lcc win32
    By GanglyLamb in forum C Programming
    Replies: 10
    Last Post: 12-22-2004, 02:24 PM
  5. Compiling syntax
    By Jez_Master in forum C++ Programming
    Replies: 3
    Last Post: 04-01-2002, 09:46 PM

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