unresolved external symbol __penter referenced in function _WspiapiStrdup@4

Posted by John Weldon on Stack Overflow See other posts from Stack Overflow or by John Weldon
Published on 2010-05-12T19:27:28Z Indexed on 2010/05/12 19:44 UTC
Read the original article Hit count: 360

I started getting this compile error after upgrading to Visual Studio 2010. Not sure if it's related, but I can't figure out what library to reference to satisfy this dependency? Is it just an API change bug or something?

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        del wstest.res wstest.obj wstest.pdb wstest.ilk wstest.exe wstest.exe.manifest vc90.pdb
        cl -Gh -Ox -DNDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_X86_=1  -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT
=0x0501 -DNTDDI_VERSION=0x05010000 -D_WIN32_IE=0x0600 -DWINVER=0x0501  -D_MT -D_DLL -MDd wstest.c
wstest.c
        link /DEBUG /DEBUGTYPE:cv  -out:wstest.exe wstest.obj   Ws2_32.lib Shlwapi.lib
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

wstest.obj : error LNK2019: unresolved external symbol __penter referenced in function _WspiapiStrdup@4
wstest.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"c:\program files (x86)\microsoft visual studio 10.0\vc\bin\link.EXE"' : return code '0x460'
Stop.

© Stack Overflow or respective owner

Related posts about visual-studio-2010

Related posts about winsock2