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

My first C code "Hello World"

Hello, I'm quite new to C. I'm learning form Sams Teach YourSelf C and using Microsoft Visual C++ 6.0.
I'm am typing the code and following the directions exacly how the book tells me. When I click on Build > Build Hello on the bottom it says:
Error excecuting link.exe
Helo.exe - 1 error(s), 2 warnign(s)
My code is,
#include <stdio.h>

int main ( int argc, char * argv [] )
{ printf ( " Hello World! \n " ); return 0;
}

Parents
  • "...so similar limitations apply!"

    Near any freebie from a commercial vendor will have some sort of limitations.

    In respect of the Turbo and Microsoft freebies - As far as I can remember, the Microsoft C++ compiler, as supplied, only creates the yeuchy slow managed code whereas the Turbo one can create proper x86 native code.

    The Turbo collection are far closer to their big brothers than the Microsoft equivalents.

Reply
  • "...so similar limitations apply!"

    Near any freebie from a commercial vendor will have some sort of limitations.

    In respect of the Turbo and Microsoft freebies - As far as I can remember, the Microsoft C++ compiler, as supplied, only creates the yeuchy slow managed code whereas the Turbo one can create proper x86 native code.

    The Turbo collection are far closer to their big brothers than the Microsoft equivalents.

Children