p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning Visual C++ 6 (http://p2p.wrox.com/forumdisplay.php?f=36)
-   -   Error linker (LNK2001)TrialRun.cpp (http://p2p.wrox.com/showthread.php?t=24684)

KAZTYX January 28th, 2005 06:23 AM

Error linker (LNK2001)TrialRun.cpp
I tried to compiler/linker TrialRun.cpp ... and ...ERROR!!!

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

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


help me,

Thanks [8)]

JasonD April 8th, 2005 10:36 AM

Usually a Google search helps for most questions like this, since SO many other people have run into the same problem. For example, try a search like this:

Basically, the problem is that you must ensure your project was created as a Win32 Console application / project, not a Win32 application / project.

Jason Doucette

ConstantineAugustus November 18th, 2005 12:00 AM

Jason, I have a similar problem. [8]I am rerunning the example given in Chapter 2 (pp. 64-65; 71-72) of Ivor Horton’s Introduction to Visual C++ 6.0. I HAVE to use Win32 Application from the projects list, as specified on page 53. ;)I have made a few fixes, as I have described in my two previous posts. posted elsewhere. :(I received the following similar error messages with my taskbuild:

----------------Configuration: SimpleApp - Win32 Debug----------------
:(MSVCRTD.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main
:(Debug/SimpleApp.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

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

[?]Do you have any ideas, other that to using the Win32 Console application / project setting?[?][8]

hetsun March 5th, 2010 10:59 AM

Agree with Jasond’s point of view

All times are GMT -4. The time now is 06:29 AM.

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