I,ve installed the Compiler and I can,t get even the simplest code to compile properely.
Anyone know where the fix for this bug is?
Or is it a limit of the demonstration version?
void main(void) { cout << "Hello world!"; }
what is it the compileer you installled?
keil c????
if you be answer keil c then code you give is bad and not compiler
you code is c++ but compile is c
c not thinking about cout like this you be not good and give errror
Can someone answer my question in English please!
Keil C51 is an ANSI 'C' compiler - it is not a C++ compiler, and does not claim to be one.
http://www.keil.com/c51/c51.asp
Your code is C++ and, therefore, will not compile with Keil C51.
This is not a bug - this is perfectly correct behaviour!
So, if I pay for the compiler I will be able to compile this simple program.
Why is the demonstration version so limited? It looks very weak! Microsofts free compiler can do so much more!
I can,t afford to pay for the full version! So can you recommend to me a good cheap compiler that can do this simple job?
No. Your program is written in C++. The Keil C51 is a C compiler. It will compile programs written in C, but not programs written in C++, Pascal, Fortran, Oberon, Smalltalk, or any other programming language that is not C.
Why is the demonstration version so limited?
The limits of the evaluation verison have nothing to do with the "problem" you have encountered.
Microsofts free compiler can do so much more!
Microsofts compilers cannot produce output that will run on an 8051. If you need your programs to run on an 8051, you will need to use something other than a Microsoft compiler.
So can you recommend to me a good cheap compiler that can do this simple job?
A free/cheap C++ compiler for the '51 ? Sorry. There is a C++ compiler, but it's not cheap or free. There are free compilers, but they do C, not C++.
How about you switch to programming in C instead of C++ ? Then you will have plenty of options. Maybe the evaluation version of Keil will actually suffice for what you are trying to do.
Someone give a more positive (and helpful) response please!
I know how to write code using cout and expect my compiler to do it. Why so difficult to get a simple answer?
you looking very rude and not good!!!!!
why you not be listening??
code with cout using c++ not c
keil is goodc c compiller and good for profesional 8051 programers
if ypou needing c++ for 8051 you specnd big money you think!!!!
looking at
www.ceibo.com/.../c prices.pdf
So, essentially you're asking "Please tell me what I want to hear." ?
All the information you need is already in this thread.
I know how to write code using cout and expect my compiler to do it.
If you use cout, then you are writing code in C++. "Your compiler", therefore, needs to be a C++ compiler. The Keil C51 is not a C++ compiler.
In simple terms, you're trying to pound a nail with a screwdriver. You are using the wrong tool for the job at hand.
Why so difficult to get a simple answer?
The simple answer is already in this thread. The problem is that you did not read, understand or believe it.
View all questions in Keil forum