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 Reply Children
  • Looks like I'm not getting through to you here!

    Well, you've discounted the hints and opinions of several experienced developers. I think the issue of who isn't getting through to whom is acutally reversed.

    You make these comments without knowledge or appreciation of the requirement.

    Well, it's not like you completely left us guessing at what the requirements were, right ?

    My contract requires me to produce code for an 8052 controller board that has a keypad and a display.

    Well, why didn't you say so ?

    If your contract doesn't explicitly state that C++ must be used, then you are free to use a much, much more appropriate language for the microcontroller in question, such as C.

    And after you have made this decision, you can proceed to the real time-consuming parts of your task. Like reading the datasheets of the keypad and the display and write the appropriate code so your '51 can actually communicate with these devices (no, your compiler won't do that for you. It knows exactly nothing about the peripherals attached to your MCU. May, if you're really lucky, you can find libraries, but I wouldn't count on it).

  • "Looks like I'm not getting through to you here!"

    On the contrary - it's the return path to you that isn't working.

    You seem totally unable to understand that C and C++ are different programming languages.

    "You make these comments without knowledge or appreciation of the requirement."

    nobody can know your requirement if you haven't stated it!

    "My contract requires me to produce code for an 8052 controller board that has a keypad and a display."

    I see no requirement there to use C++

    Where is the requirement that the programming language used must be C++ ??

    "I need serious options please."

    Why do you not consider writing in 'C' to be a serious option?

    However, if you do have a bona-fide commercial requirement for an 8051 C++ compiler, you should speak directly to the people at Keil and/or Ceibo and see if you can negotiate terms on a suitable evaluation...

    Also, Hitex used to offer short-term licences for the full Keil toolchain (still C-only, remember) - I don't know if they still do; you can ask them:
    http://www.hitex.co.uk/