468,784 Members | 1,564 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,784 developers. It's quick & easy.

VS Error: LNK2001: unresolved external symbol _WinMain@16

I've compiled two identical source codes. #1 has no problems and came with a programming book that I bought. #2, my copy and paste from #1 as a test and to eliminate as many possible error sources as possible, has a linking error.

LNK2001: unresolved external symbol _WinMain@16

I'm using C++ lingo and Microsoft Visual C++ compiler. This isn't the first time it's happened and I can't remember what I did last time to fix it. Is there any way that I can access the libary listing to compare them and see where I'm going wrong? If so, how do I do it?

Silver Leaf
Sep 30 '07 #1
2 2440
weaknessforcats
9,207 Expert Mod 8TB
That looks like a Visual Studio error.

You get this error by creating a Windows application instead of a Console Application.

Do this:
1) Create a Win32 project
2) When the wizard appears DO NOT CLICK FINISH
3) Instead, click Application Settings
4) Select Empty Project and Console Application
5) Now click Finish.

Off you go.
Oct 1 '07 #2
I was the problem! Good. Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you!

Silver Leaf
Oct 1 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by We need more power captain | last post: by
reply views Thread by =?Utf-8?B?TWF0ZXVzeiBSYWpjYQ==?= | last post: by
6 posts views Thread by sadegh | last post: by
2 posts views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.