VC++ 1.52

Hi there....
I've just installed VC1.52, and made a little simple program, just testing:

#include <stdio.h>

void main(void)
{
   printf("Hello world\n");
}

But when I compile it, then I got an link error:

Linking...

test.OBJ(f:\source\test\test.cpp) : error L2029: '_printf' : unresolved external

What am I missing? This is standard, and I haven't made any change to the IDE.
LVL 1
SmillyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chensuCommented:
I think you need to set your project setting to MS-DOS application instead of Windows application.
0
laeuchliCommented:
The error unresolved external means that there is a .lib file that you are not linking to. Probaly you are not setting the project settings to the right target. Try setting it to quickwin or msdos(if you have the pro version).
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chensuCommented:
>Probaly you are not setting the project settings to the right target. Try setting it to quickwin or msdos(if you have the pro version).

Isn't it what I have said?
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

SmillyAuthor Commented:
Thank.....
0
laeuchliCommented:
chensu as a matter of fact, I don't belive that vc 1.52 standard comes with msdos. You have to get the pro version. That is why I was telling about quickwin.
0
chensuCommented:
I remember there was only one version of Visual C++ 1.52, no standard or professional version.
0
SmillyAuthor Commented:
Thanks to both of you, I dont know if there is a prof version of vc++ 1.52, but in my version I get a quickwin and a dos version........

0
laeuchliCommented:
oh well maybe it was version 1.0 that had std and pro. sorry if I got mixed up. See you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.