Thread: [Help] The issue with 64-bit Vista and VC2005

  1. #1
    Registered User
    Join Date
    Aug 2007

    [Help] The issue with 64-bit Vista and VC2005

    Im using VC2005 in 64-bit Vista. When I am compiling my program , it says:
    1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
    1>test.exe : fatal error LNK1120: 1 unresolved externals
    I have patched "VS2005 SP1" for VS.

    The code was compiled perfectly when I was using xp with VS2005

    any one got any idea for fixing up this problem?

    Last edited by kyaky; 09-22-2007 at 10:56 AM.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    It looks like your new project expects a WinMain() rather than main().
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed