This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Bug in compiler

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!";
}

Parents
  • Someone give a more positive (and helpful) response please!

    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.

Reply
  • Someone give a more positive (and helpful) response please!

    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.

Children
No data