Wrox Programmer Forums
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 13th, 2005, 07:22 AM
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with compiling

Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/centy3.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

just installed winXP and VStudio 6.0 and i got this message after every single attempt 2 compile code. why and what can i do to fix it????

thx
centy77@interia.pl

 
Old January 23rd, 2005, 01:45 PM
Authorized User
 
Join Date: Jan 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That is a little odd as I get the same error when createing a Win32 Appliaction. and I select an empty project. after selecting a simple project it works fine.

very odd like can;t seem to see what da problum is like.


When ya dreams come true.
 
Old January 24th, 2005, 04:29 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

Make sure that you are not selecting a Win32 Console Application and that you are defining WinMain in your Win 32 application.

Regards
Ankur Verma
 
Old February 2nd, 2005, 03:48 PM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How do you define WinMain when you open up an empty project window? Please explain it in details.


Quote:
quote:Originally posted by Ankur_Verma
 Make sure that you are not selecting a Win32 Console Application and that you are defining WinMain in your Win 32 application.

Regards
Ankur Verma
 
Old February 8th, 2005, 02:27 AM
Registered User
 
Join Date: Feb 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to rupsee Send a message via AIM to rupsee
Default

centy, u would have to be a bit specific about what kind of code u are working on and what ur requirements are...
If it is console based application then Win32 Console Application would be fine else if it is a windows based project go on for Win32 Application. You often get this error on choosing Win32 application when u r actually coding for a console based application....
You can refer to the msdn library for more information on winmain()
i.e. http://msdn.microsoft.com/library/default.asp






Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with compiling application hertendreef ASP.NET 2.0 Basics 1 August 16th, 2007 12:17 PM
Problem with compiling - 2005 pghTech Visual C++ 2005 0 June 28th, 2006 11:13 AM
Compiling problem secko Visual C++ 1 March 15th, 2005 06:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.