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

This is a discussion on [Help] The issue with 64-bit Vista and VC2005 within the C++ Programming forums, part of the General Programming Boards category; Im using VC2005 in 64-bit Vista. When I am compiling my program , it says: Code: 1>MSVCRTD.lib(crtexew.obj) : error LNK2019: ...

  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    23

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

    Im using VC2005 in 64-bit Vista. When I am compiling my program , it says:
    Code:
    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?

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

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,538
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21