Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 13th, 2005, 07:22 AM
Registered User
 
Join Date: Jan 2005
Location: London, London, United Kingdom.
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

Reply With Quote
  #2 (permalink)  
Old January 23rd, 2005, 01:45 PM
Authorized User
 
Join Date: Jan 2005
Location: Wales, UK, United Kingdom.
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.
Reply With Quote
  #3 (permalink)  
Old January 24th, 2005, 04:29 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
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
Reply With Quote
  #4 (permalink)  
Old February 2nd, 2005, 03:48 PM
Registered User
 
Join Date: Feb 2005
Location: , , .
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
Reply With Quote
  #5 (permalink)  
Old February 8th, 2005, 02:27 AM
Registered User
 
Join Date: Feb 2005
Location: mumbai, maharashtra, India.
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

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 11:05 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.