Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have a problem

Status
Not open for further replies.

justinr

Programmer
Feb 3, 2001
4
US
I'm sort of new to programming. I really have no idea why I keep getting a LNK2001 Error with my compiler. I have tried basically everything it told me to. You can check the help VC++ gives...

There is the link to my source code

Here are the errors...

--------------------Configuration: EX2_06 - Win32 Debug--------------------
Compiling...
Ex2_06.cpp
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/EX2_06.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

EX2_06.exe - 2 error(s), 0 warning(s)

Any help? I'm just starting and have no idea. This has nothing to do with me I don't think.
 
justinr,

You are linking with the Windows C++ startup library that is wanting to call your applications _WinMain() function and you don't have one that the linker can see.

Based on your post that's all I can think to say in a response.

-pete
 
Is there a way to fix it? I had previously installed Visual Studio .NET Beta 1 and when I uninstalled it kind of got an error. Would that have anything to do with it? Thanks for the help though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top