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
  • "I don't understand why there are some guys that are so negative about certain suggestions."

    Trying to compile C++ with a C 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?
    

    On receiving an answer that it is a C compiler:

    Can someone answer my question in English please!
    

    On experience with embedded compilers:

    Why is the demonstration version so limited? It
    looks very weak! Microsofts free compiler can do so
    much more!
    

    On receiving a good description of the problem, a note that the M$ compiler can't build for the '51 target, and that the C51 can't build C++ and that a trivial change to the code (to make it C code) would make the example buildable:

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

    After having received a number of descriptions that C and C++ are different languages:

    Why have a demo version that won,t compile my
    simple program?
    

    After receiving a further note that C and C++ are different languages, and that a C compiler just can't compile C++:

    Anyway, I need to know of alternatives and not
    just get you can,t do it style comments.
    

    On the question: Can't you switch to C? Do you really need C++?

    You make these comments without knowledge or
    appreciation of the requirement.
    
    My contract requires me to produce code for an 8052
    controller board that has a keypad and a display.
    
    I need serious options please.
    

    This implies that the chip 8052, or the keypad or the display is a direct implication why C++ is a requirement and not an option. It also implies that the answers you have received are not serious.

    After receiving a number of notes that C++ are not the best of languages for the lowest end of microcontrollers, you translate unsuitable into impossible:

    The general view from this forum is that C++ an
    the 8052 don't mix.
    

    From then on, it's not meaningful to follow the thread anymore.

    As you can (probably not) see, you entered this thread in a very narrow-minded way. The perfect way of entering a forum and ask questions...

Reply
  • "I don't understand why there are some guys that are so negative about certain suggestions."

    Trying to compile C++ with a C 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?
    

    On receiving an answer that it is a C compiler:

    Can someone answer my question in English please!
    

    On experience with embedded compilers:

    Why is the demonstration version so limited? It
    looks very weak! Microsofts free compiler can do so
    much more!
    

    On receiving a good description of the problem, a note that the M$ compiler can't build for the '51 target, and that the C51 can't build C++ and that a trivial change to the code (to make it C code) would make the example buildable:

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

    After having received a number of descriptions that C and C++ are different languages:

    Why have a demo version that won,t compile my
    simple program?
    

    After receiving a further note that C and C++ are different languages, and that a C compiler just can't compile C++:

    Anyway, I need to know of alternatives and not
    just get you can,t do it style comments.
    

    On the question: Can't you switch to C? Do you really need C++?

    You make these comments without knowledge or
    appreciation of the requirement.
    
    My contract requires me to produce code for an 8052
    controller board that has a keypad and a display.
    
    I need serious options please.
    

    This implies that the chip 8052, or the keypad or the display is a direct implication why C++ is a requirement and not an option. It also implies that the answers you have received are not serious.

    After receiving a number of notes that C++ are not the best of languages for the lowest end of microcontrollers, you translate unsuitable into impossible:

    The general view from this forum is that C++ an
    the 8052 don't mix.
    

    From then on, it's not meaningful to follow the thread anymore.

    As you can (probably not) see, you entered this thread in a very narrow-minded way. The perfect way of entering a forum and ask questions...

Children
No data