Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Linker err question

Posted on 2002-05-28
1
175 Views
Last Modified: 2010-04-02
I am getting an error after a program compiles:

LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16

What does this mean & how do I fix it
0
Comment
Question by:castello
1 Comment
 
LVL 3

Accepted Solution

by:
MDarling earned 50 total points
ID: 7041235
It means your compiling a windows program but you haven't got a required function called WinMain - equivalent to main in other systems.

Have you perhaps chosen the wrong project type to build?

Did you intend to build a Console Application but Mistakenly choose to build a Windows application?

Regards,
Mike.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question