Linking error messages when building program

Reply

Join Date: Feb 2005
Posts: 24
Reputation: jonnie83 is an unknown quantity at this point 
Solved Threads: 0
jonnie83 jonnie83 is offline Offline
Newbie Poster

Linking error messages when building program

 
0
  #1
Apr 6th, 2005
When trying to build me program the error message
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/Marking Program.exe : fatal error LNK1120: 1 unresolved externals
occurs. I am not sure why this happens, any thoughts
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,358
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 237
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: Linking error messages when building program

 
0
  #2
Apr 6th, 2005
It sounds like you had originally specified a (GUI) Windows application, but provided code for a console application. The GUI app expects WinMain, the console app expects main. It may be easiest to create a new project as a Windows Console Application, and then add your existing source file(s) to it.

"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC