-
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.
-
is the file your compiling a .c or .cpp?
-
Reply
I guess it is .cpp That is C++ isn't it?
-
well you need to be sure cause if its a .c then it won't compile and might give you that error.
-
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;)
-
Follow-up
Well, no-one, my compiler uses .cpp Thanks alot.
-