unresolved external symbols

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?YmFzaA==?=

    #1

    unresolved external symbols

    Hello,

    I am compiling a CPP code using Visual studion .net 2003. I get the
    following error, despite having windldap.h and wldap32.dll in my include and
    lib paths. Here is the error.

    uuid.lib rpcrt4.lib ole32.lib oleaut32.lib uuid.lib
    Creating library libsq00.lib and object libsq00.exp
    libq00.lib(ootb .obj) : error LNK2019: unresolved external symbol
    _ldap_unbind@4
    referenced in function _q00UsrStatGetU srStatObject
    libq00.lib(Ldap Auth.obj) : error LNK2001: unresolved external symbol
    _ldap_unbin
    d@4
    libq00.lib(sig. obj) : error LNK2001: unresolved external symbol _ldap_unbind@4
    libq00.lib(ootb .obj) : error LNK2019: unresolved external symbol
    _ldap_simple_bi
    nd@12 referenced in function _q00UsrStatGetU srStatObject
    libq00.lib(Ldap Auth.obj) : error LNK2001: unresolved external symbol
    _ldap_simpl
    e_bind@12
    libq00.lib(sig. obj) : error LNK2001: unresolved external symbol
    _ldap_simple_bi n
    d@12
    libq00.lib(ootb .obj) : error LNK2019: unresolved external symbol
    _ldap_init@8 re
    ferenced in function _q00UsrStatGetU srStatObject
    libq00.lib(Ldap Auth.obj) : error LNK2001: unresolved external symbol
    _ldap_init@
    8
    libq00.lib(sig. obj) : error LNK2001: unresolved external symbol _ldap_init@8
    libq00.lib(Ldap Auth.obj) : error LNK2019: unresolved external symbol
    _ldap_ber_f
    ree@8 referenced in function _q00q0LDQryq0Do LDAP
    libq00.lib(Ldap Auth.obj) : error LNK2019: unresolved external symbol
    _ldap_memfr
    ee@4 referenced in function _q00q0LDQryq0Do LDAP
    libq00.lib(Ldap Auth.obj) : error LNK2019: unresolved external symbol
    _ldap_value
    _free@4 referenced in function _q00q0LDQryq0Do LDAP
    libq00.lib(Ldap Auth.obj) : error LNK2019: unresolved external symbol
    _ldap_get_v
    alues@12 referenced in function _q00q0LDQryq0Do LDAP
    libq00.lib(Ldap Auth.obj) : error LNK2019: unresolved external symbol
    _ldap_next_
    attribute@12 referenced in function _q00q0LDQryq0Do LDAP
    libq00.lib(Ldap Auth.obj) : error LNK2019: unresolved external symbol
    _ldap_first
    _attribute@12 referenced in function _q00q0LDQryq0Do LDAP
    libq00.lib(Ldap Auth.obj) : error LNK2019: unresolved external symbol
    _ldap_first
    _entry@8 referenced in function _q00q0LDQryq0Do LDAP
    libq00.lib(Ldap Auth.obj) : error LNK2019: unresolved external symbol
    _ldap_msgfr
    ee@4 referenced in function _q00q0LDQryq0Do LDAP
    libq00.lib(Ldap Auth.obj) : error LNK2019: unresolved external symbol
    _ldap_resul
    t@20 referenced in function _q00q0LDQryq0Do LDAP
    libq00.lib(Ldap Auth.obj) : error LNK2019: unresolved external symbol
    _ldap_perro
    r@8 referenced in function _q00q0LDQryq0Do LDAP
    libq00.lib(Ldap Auth.obj) : error LNK2019: unresolved external symbol
    _ldap_get_l
    derrno@12 referenced in function _q00q0LDQryq0Do LDAP
    libq00.lib(Ldap Auth.obj) : error LNK2019: unresolved external symbol
    _ldap_searc
    h@24 referenced in function _q00q0LDQryq0Do LDAP
    libq00.lib(Ldap Auth.obj) : error LNK2019: unresolved external symbol
    _ldap_set_o
    ption@12 referenced in function _q00q0LDQryq0Do LDAP
    libsq00.dll : fatal error LNK1120: 16 unresolved externals


    Here is what i have in my lib and include environment variables.

    lib ->c:\Program Files\Microsoft Visual Studio .NET
    2003\SDK\v1.1\L ib\;C:\Program Files\Microsoft Visual Studio .NET
    2003\Vc7\lib\;C :\Program Files\VC98\lib\ ;C:\Program Files\Microsoft Visual
    Studio .NET 2003\Vc7\Platfo rmSDK\Lib\

    include ->c:\Program Files\Microsoft Visual Studio .NET
    2003\SDK\v1.1\i nclude\;c:\Prog ram Files\Microsoft Visual Studio .NET
    2003\Vc7\includ e\;C:\Program Files\VC98\Incl ude\;C:\Program Files\Microsoft
    Visual Studio .NET 2003\Vc7\Platfo rmSDK\Include\

    Thanks for your help

  • David Lowndes

    #2
    Re: unresolved external symbols

    >I am compiling a CPP code using Visual studion .net 2003. I get the
    >following error, despite having windldap.h and wldap32.dll in my include and
    >lib paths. Here is the error.
    >
    uuid.lib rpcrt4.lib ole32.lib oleaut32.lib uuid.lib
    Creating library libsq00.lib and object libsq00.exp
    >libq00.lib(oot b.obj) : error LNK2019: unresolved external symbol
    >_ldap_unbind @4
    >
    You need to add Wldap32.lib to the list of linked libraries in your
    project settings. Alternatively, add:

    #pragma comment( lib, "Wldap32.li b" )

    to your source code (just after the #include for the header would be a
    reasonable place) to use the automatic linking facility in VC++

    Dave

    Comment

    • =?Utf-8?B?YmFzaA==?=

      #3
      Re: unresolved external symbols

      That resolved the issue.

      Thanks David

      "David Lowndes" wrote:
      I am compiling a CPP code using Visual studion .net 2003. I get the
      following error, despite having windldap.h and wldap32.dll in my include and
      lib paths. Here is the error.

      uuid.lib rpcrt4.lib ole32.lib oleaut32.lib uuid.lib
      Creating library libsq00.lib and object libsq00.exp
      libq00.lib(ootb .obj) : error LNK2019: unresolved external symbol
      _ldap_unbind@4
      >
      You need to add Wldap32.lib to the list of linked libraries in your
      project settings. Alternatively, add:
      >
      #pragma comment( lib, "Wldap32.li b" )
      >
      to your source code (just after the #include for the header would be a
      reasonable place) to use the automatic linking facility in VC++
      >
      Dave
      >

      Comment

      Working...