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; }
"using Microsoft Visual C++ 6.0."
Why do you come to the Keil forum when you have a question specifically about Microsoft Visual C++ ?!
For questions specifically about Microsoft products, you obviously need to go to a Microsoft Forum!
Try http://msdn.microsoft.com
Also, rather than using such an ancient version, why not download the current free tools:
www.microsoft.com/.../Default.aspx
There's tons of stuff there to teach you how to use it - even a video: msdn.microsoft.com/.../bb964629.aspx
Note that the current free version of the M$ compiler have a newer compiler, but lacks a lot of support from Visual C++ 6.0 since it is basically a limited demo version.
If you want a decent free compile, you could get one of the Turbo range.
http://www.turboexplorer.com/
Actually, you could do a simple program like you have with the Keil demo package.
It really depends what you want to do with your to-be-acquired C knowledge.
Thanks you Skal
I am using keil c51 ATM but think to learn more with the pc more quickly.i Use an old compiler i was given but will try turbo.
For Windows programming, a lot of people are using the following free tools:
The MinGW port of the gcc compiler: http://www.mingw.org/
The Code::Blocks IDE: http://www.codeblocks.org/
The wxWidgets framework: http://www.wxwidgets.org/
They are essentially Borland/CodeGear/Embarcadero's equivalent of Microsoft's Express editions - so similar limitations apply!
"...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.
"As far as I can remember, the Microsoft C++ compiler, as supplied, only creates the yeuchy slow managed code"
Your memory fails you: The VC++ Express Editions does create native Win32 applications:
www.microsoft.com/.../
I stand corrected on that one.
But I still have a vague recollection about reading an article explaining what had to be done to add VS type functionality to the Express version.
May have been with the 2005 version???
May have been something to do with MFC???
Anyhow ... I guess the OP has long since moved onto other things.
The MFC support is missing (or was in the version I looked at).
I didn't think it was right at the time, but couldn't be bothered to check - but I happened to be visiting the site today...