none
Unresolved External Symbol ERROR

    Question

  • i created a static snmp++ library and added it to my solution, i also have a normal application that refernces that libray in the same soultion 

     

     when i try to use the library  (calling one of the function)  it  gives the fellowing error: 

     

    1>------ Build started: Project: snmp++, Configuration: Release Win32 ------
    1>Build started 7/26/2010 10:27:49 PM.
    1>InitializeBuildStatus:
    1> Touching ".\Release\snmp++.unsuccessfulbuild".
    1>ClCompile:
    1> All outputs are up-to-date.
    1>address.obj : error LNK2019: unresolved external symbol _htonl@4 referenced in function "protected: int __thiscall Snmp_pp::IpAddress::parse_coloned_ipstring(char const *)" (?parse_coloned_ipstring@IpAddress@Snmp_pp@@IAEHPBD@Z)
    1>address.obj : error LNK2019: unresolved external symbol _WSAGetLastError@0 referenced in function "protected: virtual bool __thiscall Snmp_pp::IpAddress::parse_address(char const *)" (?parse_address@IpAddress@Snmp_pp@@MAE_NPBD@Z)
    1>notifyqueue.obj : error LNK2001: unresolved external symbol _WSAGetLastError@0
    1>uxsnmp.obj : error LNK2001: unresolved external symbol _WSAGetLastError@0
    1>address.obj : error LNK2019: unresolved external symbol _inet_ntoa@4 referenced in function "protected: virtual bool __thiscall Snmp_pp::IpAddress::parse_address(char const *)" (?parse_address@IpAddress@Snmp_pp@@MAE_NPBD@Z)
    1>snmpmsg.obj : error LNK2001: unresolved external symbol _inet_ntoa@4
    1>uxsnmp.obj : error LNK2001: unresolved external symbol _inet_ntoa@4
    1>address.obj : error LNK2019: unresolved external symbol _gethostbyname@4 referenced in function "protected: virtual bool __thiscall Snmp_pp::IpAddress::parse_address(char const *)" (?parse_address@IpAddress@Snmp_pp@@MAE_NPBD@Z)
    1>address.obj : error LNK2019: unresolved external symbol _gethostbyaddr@12 referenced in function "protected: int __thiscall Snmp_pp::IpAddress::addr_to_friendly(void)" (?addr_to_friendly@IpAddress@Snmp_pp@@IAEHXZ)
    1>address.obj : error LNK2019: unresolved external symbol _inet_addr@4 referenced in function "protected: int __thiscall Snmp_pp::IpAddress::addr_to_friendly(void)" (?addr_to_friendly@IpAddress@Snmp_pp@@IAEHXZ)
    1>notifyqueue.obj : error LNK2001: unresolved external symbol _inet_addr@4
    1>snmpmsg.obj : error LNK2001: unresolved external symbol _inet_addr@4
    1>uxsnmp.obj : error LNK2001: unresolved external symbol _inet_addr@4
    1>address.obj : error LNK2019: unresolved external symbol _ntohl@4 referenced in function "public: virtual unsigned int __thiscall Snmp_pp::IpAddress::get_scope(void)const " (?get_scope@IpAddress@Snmp_pp@@UBEIXZ)
    1>address.obj : error LNK2019: unresolved external symbol _htons@4 referenced in function "public: void __thiscall Snmp_pp::UdpAddress::set_port(unsigned short)" (?set_port@UdpAddress@Snmp_pp@@QAEXG@Z)
    1>notifyqueue.obj : error LNK2001: unresolved external symbol _htons@4
    1>uxsnmp.obj : error LNK2001: unresolved external symbol _htons@4
    1>address.obj : error LNK2019: unresolved external symbol _ntohs@4 referenced in function "public: unsigned short __thiscall Snmp_pp::UdpAddress::get_port(void)const " (?get_port@UdpAddress@Snmp_pp@@QBEGXZ)
    1>uxsnmp.obj : error LNK2001: unresolved external symbol _ntohs@4
    1>eventlistholder.obj : error LNK2019: unresolved external symbol _select@20 referenced in function "public: int __thiscall Snmp_pp::EventListHolder::SNMPProcessPendingEvents(void)" (?SNMPProcessPendingEvents@EventListHolder@Snmp_pp@@QAEHXZ)
    1>uxsnmp.obj : error LNK2001: unresolved external symbol _select@20
    1>msgqueue.obj : error LNK2019: unresolved external symbol ___WSAFDIsSet@8 referenced in function "public: virtual int __thiscall Snmp_pp::CSNMPMessageQueue::HandleEvents(int,struct fd_set const &,struct fd_set const &,struct fd_set const &)" (?HandleEvents@CSNMPMessageQueue@Snmp_pp@@UAEHHABUfd_set@@00@Z)
    1>notifyqueue.obj : error LNK2001: unresolved external symbol ___WSAFDIsSet@8
    1>uxsnmp.obj : error LNK2001: unresolved external symbol ___WSAFDIsSet@8
    1>notifyqueue.obj : error LNK2019: unresolved external symbol _closesocket@4 referenced in function "public: int __thiscall Snmp_pp::CNotifyEventQueue::AddEntry(class Snmp_pp::Snmp *,class Snmp_pp::SnmpCollection<class Snmp_pp::Oid> const &,class Snmp_pp::SnmpCollection<class Snmp_pp::SnmpTarget> const &,class Snmp_pp::SnmpCollection<class Snmp_pp::GenAddress> const &)" (?AddEntry@CNotifyEventQueue@Snmp_pp@@QAEHPAVSnmp@2@ABV?$SnmpCollection@VOid@Snmp_pp@@@2@ABV?$SnmpCollection@VSnmpTarget@Snmp_pp@@@2@ABV?$SnmpCollection@VGenAddress@Snmp_pp@@@2@@Z)
    1>uxsnmp.obj : error LNK2001: unresolved external symbol _closesocket@4
    1>notifyqueue.obj : error LNK2019: unresolved external symbol _bind@12 referenced in function "public: int __thiscall Snmp_pp::CNotifyEventQueue::AddEntry(class Snmp_pp::Snmp *,class Snmp_pp::SnmpCollection<class Snmp_pp::Oid> const &,class Snmp_pp::SnmpCollection<class Snmp_pp::SnmpTarget> const &,class Snmp_pp::SnmpCollection<class Snmp_pp::GenAddress> const &)" (?AddEntry@CNotifyEventQueue@Snmp_pp@@QAEHPAVSnmp@2@ABV?$SnmpCollection@VOid@Snmp_pp@@@2@ABV?$SnmpCollection@VSnmpTarget@Snmp_pp@@@2@ABV?$SnmpCollection@VGenAddress@Snmp_pp@@@2@@Z)
    1>uxsnmp.obj : error LNK2001: unresolved external symbol _bind@12
    1>notifyqueue.obj : error LNK2019: unresolved external symbol _socket@12 referenced in function "public: int __thiscall Snmp_pp::CNotifyEventQueue::AddEntry(class Snmp_pp::Snmp *,class Snmp_pp::SnmpCollection<class Snmp_pp::Oid> const &,class Snmp_pp::SnmpCollection<class Snmp_pp::SnmpTarget> const &,class Snmp_pp::SnmpCollection<class Snmp_pp::GenAddress> const &)" (?AddEntry@CNotifyEventQueue@Snmp_pp@@QAEHPAVSnmp@2@ABV?$SnmpCollection@VOid@Snmp_pp@@@2@ABV?$SnmpCollection@VSnmpTarget@Snmp_pp@@@2@ABV?$SnmpCollection@VGenAddress@Snmp_pp@@@2@@Z)
    1>uxsnmp.obj : error LNK2001: unresolved external symbol _socket@12
    1>snmpmsg.obj : error LNK2019: unresolved external symbol _gethostname@8 referenced in function "private: int __thiscall Snmp_pp::SnmpMessage::load(class Snmp_pp::Pdu const &,class Snmp_pp::OctetStr const &,enum Snmp_pp::snmp_version,class Snmp_pp::OctetStr const *,class Snmp_pp::OctetStr const *,int)" (?load@SnmpMessage@Snmp_pp@@AAEHABVPdu@2@ABVOctetStr@2@W4snmp_version@2@PBV42@3H@Z)
    1>usm_v3.obj : error LNK2019: unresolved external symbol "public: __thiscall Snmp_pp::AuthPriv::~AuthPriv(void)" (??1AuthPriv@Snmp_pp@@QAE@XZ) referenced in function "public: void * __thiscall Snmp_pp::AuthPriv::`scalar deleting destructor'(unsigned int)" (??_GAuthPriv@Snmp_pp@@QAEPAXI@Z)
    1>usm_v3.obj : error LNK2019: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::password_to_key_priv(int,int,unsigned char const *,unsigned int,unsigned char const *,unsigned int,unsigned char *,unsigned int *)" (?password_to_key_priv@AuthPriv@Snmp_pp@@QAEHHHPBEI0IPAEPAI@Z) referenced in function "public: int __thiscall Snmp_pp::USM::build_localized_keys(class Snmp_pp::OctetStr const &,int,int,unsigned char const *,unsigned int,unsigned char const *,unsigned int,unsigned char *,unsigned int *,unsigned char *,unsigned int *)" (?build_localized_keys@USM@Snmp_pp@@QAEHABVOctetStr@2@HHPBEI1IPAEPAI23@Z)
    1>usm_v3.obj : error LNK2019: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::password_to_key_auth(int,unsigned char const *,unsigned int,unsigned char const *,unsigned int,unsigned char *,unsigned int *)" (?password_to_key_auth@AuthPriv@Snmp_pp@@QAEHHPBEI0IPAEPAI@Z) referenced in function "public: int __thiscall Snmp_pp::USM::build_localized_keys(class Snmp_pp::OctetStr const&,int,int,unsigned char const *,unsigned int,unsigned char const *,unsigned int,unsigned char *,unsigned int *,unsigned char *,unsigned int *)" (?build_localized_keys@USM@Snmp_pp@@QAEHABVOctetStr@2@HHPBEI1IPAEPAI23@Z)
    1>usm_v3.obj : error LNK2019: unresolved external symbol "public: class Snmp_pp::Priv * __thiscall Snmp_pp::AuthPriv::get_priv(int)" (?get_priv@AuthPriv@Snmp_pp@@QAEPAVPriv@2@H@Z) referenced in function "public: int __thiscall Snmp_pp::USMUserNameTable::save_to_file(char const *,class Snmp_pp::AuthPriv *)" (?save_to_file@USMUserNameTable@Snmp_pp@@QAEHPBDPAVAuthPriv@2@@Z)
    1>usm_v3.obj : error LNK2019: unresolved external symbol "public: class Snmp_pp::Auth * __thiscall Snmp_pp::AuthPriv::get_auth(int)" (?get_auth@AuthPriv@Snmp_pp@@QAEPAVAuth@2@H@Z) referenced in function "public: int __thiscall Snmp_pp::USMUserNameTable::save_to_file(char const *,class Snmp_pp::AuthPriv *)" (?save_to_file@USMUserNameTable@Snmp_pp@@QAEHPBDPAVAuthPriv@2@@Z)
    1>usm_v3.obj : error LNK2019: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::get_priv_id(char const *)const " (?get_priv_id@AuthPriv@Snmp_pp@@QBEHPBD@Z) referenced in function "public: int __thiscall Snmp_pp::USMUserNameTable::load_from_file(char const *,class Snmp_pp::AuthPriv *)" (?load_from_file@USMUserNameTable@Snmp_pp@@QAEHPBDPAVAuthPriv@2@@Z)
    1>usm_v3.obj : error LNK2019: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::get_auth_id(char const *)const " (?get_auth_id@AuthPriv@Snmp_pp@@QBEHPBD@Z) referenced in function "public: int __thiscall Snmp_pp::USMUserNameTable::load_from_file(char const *,class Snmp_pp::AuthPriv *)" (?load_from_file@USMUserNameTable@Snmp_pp@@QAEHPBDPAVAuthPriv@2@@Z)
    1>usm_v3.obj : error LNK2019: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::add_default_modules(void)" (?add_default_modules@AuthPriv@Snmp_pp@@QAEHXZ) referenced in function "public: __thiscall Snmp_pp::USM::USM(unsigned int,class Snmp_pp::OctetStr const &,class Snmp_pp::v3MP const *,unsigned int *,int &)" (??0USM@Snmp_pp@@QAE@IABVOctetStr@1@PBVv3MP@1@PAIAAH@Z)
    1>usm_v3.obj : error LNK2019: unresolved external symbol "public: __thiscall Snmp_pp::AuthPriv::AuthPriv(int &)" (??0AuthPriv@Snmp_pp@@QAE@AAH@Z) referenced in function "public: __thiscall Snmp_pp::USM::USM(unsigned int,class Snmp_pp::OctetStr const &,class Snmp_pp::v3MP const *,unsigned int *,int &)" (??0USM@Snmp_pp@@QAE@IABVOctetStr@1@PBVv3MP@1@PAIAAH@Z)
    1>usm_v3.obj : error LNK2019: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::get_keychange_value(int,class Snmp_pp::OctetStr const &,class Snmp_pp::OctetStr const &,class Snmp_pp::OctetStr &)" (?get_keychange_value@AuthPriv@Snmp_pp@@QAEHHABVOctetStr@2@0AAV32@@Z) referenced in function "public: struct Snmp_pp::UsmKeyUpdate * __thiscall Snmp_pp::USM::key_update_prepare(class Snmp_pp::OctetStr const &,class Snmp_pp::SnmpTarget &,class Snmp_pp::OctetStr const &,class Snmp_pp::Pdu &,int,int &,class Snmp_pp::OctetStr const &,class Snmp_pp::OctetStr const &,class Snmp_pp::OctetStr const &)" (?key_update_prepare@USM@Snmp_pp@@QAEPAUUsmKeyUpdate@2@ABVOctetStr@2@AAVSnmpTarget@2@0AAVPdu@2@HAAH000@Z)
    1>usm_v3.obj : error LNK2019: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::auth_out_msg(int,unsigned char const *,unsigned char *,int,unsigned char *)" (?auth_out_msg@AuthPriv@Snmp_pp@@QAEHHPBEPAEH1@Z) referenced in function "protected: int __thiscall Snmp_pp::USM::generate_msg(unsigned char *,int,int,class Snmp_pp::OctetStr const &,class Snmp_pp::OctetStr const &,int,unsigned char *,int,struct Snmp_pp::SecurityStateReference *,unsigned char *,int *)" (?generate_msg@USM@Snmp_pp@@IAEHPAEHHABVOctetStr@2@1H0HPAUSecurityStateReference@2@0PAH@Z)
    1>usm_v3.obj : error LNK2019: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::get_auth_params_len(int)" (?get_auth_params_len@AuthPriv@Snmp_pp@@QAEHH@Z) referenced in function "protected: int __thiscall Snmp_pp::USM::generate_msg(unsigned char *,int,int,class Snmp_pp::OctetStr const &,class Snmp_pp::OctetStr const &,int,unsigned char *,int,struct Snmp_pp::SecurityStateReference *,unsigned char *,int *)" (?generate_msg@USM@Snmp_pp@@IAEHPAEHHABVOctetStr@2@1H0HPAUSecurityStateReference@2@0PAH@Z)
    1>usm_v3.obj : error LNK2019: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::encrypt_msg(int,unsigned char const *,unsigned int,unsigned char const *,unsigned int,unsigned char *,unsigned int *,unsigned char *,unsigned int *,unsigned long,unsigned long)" (?encrypt_msg@AuthPriv@Snmp_pp@@QAEHHPBEI0IPAEPAI12KK@Z) referenced in function "protected: int __thiscall Snmp_pp::USM::generate_msg(unsigned char *,int,int,class Snmp_pp::OctetStr const &,class Snmp_pp::OctetStr const &,int,unsigned char *,int,struct Snmp_pp::SecurityStateReference *,unsigned char *,int *)" (?generate_msg@USM@Snmp_pp@@IAEHPAEHHABVOctetStr@2@1H0HPAUSecurityStateReference@2@0PAH@Z)
    1>usm_v3.obj : error LNK2019: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::get_priv_params_len(int)" (?get_priv_params_len@AuthPriv@Snmp_pp@@QAEHH@Z) referenced in function "protected: int __thiscall Snmp_pp::USM::generate_msg(unsigned char *,int,int,class Snmp_pp::OctetStr const &,class Snmp_pp::OctetStr const &,int,unsigned char *,int,struct Snmp_pp::SecurityStateReference *,unsigned char *,int *)" (?generate_msg@USM@Snmp_pp@@IAEHPAEHHABVOctetStr@2@1H0HPAUSecurityStateReference@2@0PAH@Z)
    1>usm_v3.obj : error LNK2019: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::decrypt_msg(int,unsigned char const *,unsigned int,unsigned char const *,unsigned int,unsigned char *,unsigned int *,unsigned char const *,unsigned int,unsigned long,unsigned long)" (?decrypt_msg@AuthPriv@Snmp_pp@@QAEHHPBEI0IPAEPAI0IKK@Z) referenced in function "protected: int __thiscall Snmp_pp::USM::process_msg(int,unsigned char *,int,int,long,unsigned char *,int,unsigned char *,int,class Snmp_pp::OctetStr &,class Snmp_pp::OctetStr &,unsigned char *,int *,long *,struct Snmp_pp::SecurityStateReference *,class Snmp_pp::UdpAddress const &)" (?process_msg@USM@Snmp_pp@@IAEHHPAEHHJ0H0HAAVOctetStr@2@10PAHPAJPAUSecurityStateReference@2@ABVUdpAddress@2@@Z)
    1>usm_v3.obj : error LNK2019: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::auth_inc_msg(int,unsigned char const *,unsigned char *,int,unsigned char *,int)" (?auth_inc_msg@AuthPriv@Snmp_pp@@QAEHHPBEPAEH1H@Z) referenced in function "protected: int __thiscall Snmp_pp::USM::process_msg(int,unsigned char *,int,int,long,unsigned char *,int,unsigned char *,int,class Snmp_pp::OctetStr &,class Snmp_pp::OctetStr &,unsigned char *,int *,long *,struct Snmp_pp::SecurityStateReference *,class Snmp_pp::UdpAddress const &)" (?process_msg@USM@Snmp_pp@@IAEHHPAEHHJ0H0HAAVOctetStr@2@10PAHPAJPAUSecurityStateReference@2@ABVUdpAddress@2@@Z)
    1>uxsnmp.obj : error LNK2019: unresolved external symbol _sendto@24 referenced in function "int __cdecl Snmp_pp::send_snmp_request(unsigned int,unsigned char *,unsigned int,class Snmp_pp::Address &)" (?send_snmp_request@Snmp_pp@@YAHIPAEIAAVAddress@1@@Z)
    1>uxsnmp.obj : error LNK2019: unresolved external symbol _recvfrom@24 referenced in function "int __cdecl Snmp_pp::receive_snmp_response(unsigned int,class Snmp_pp::Snmp &,class Snmp_pp::Pdu &,class Snmp_pp::UdpAddress &,class Snmp_pp::OctetStr &,bool)" (?receive_snmp_response@Snmp_pp@@YAHIAAVSnmp@1@AAVPdu@1@AAVUdpAddress@1@AAVOctetStr@1@_N@Z)
    1>uxsnmp.obj : error LNK2019: unresolved external symbol _WSAStartup@8 referenced in function "public: static void __cdecl Snmp_pp::Snmp::socket_startup(void)" (?socket_startup@Snmp@Snmp_pp@@SAXXZ)
    1>uxsnmp.obj : error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function "public: static void __cdecl Snmp_pp::Snmp::socket_cleanup(void)" (?socket_cleanup@Snmp@Snmp_pp@@SAXXZ)
    1>uxsnmp.obj : error LNK2019: unresolved external symbol _setsockopt@20 referenced in function "protected: void __thiscall Snmp_pp::Snmp::init(int &,class Snmp_pp::IpAddress * * const,unsigned short,unsigned short)" (?init@Snmp@Snmp_pp@@IAEXAAHQAPAVIpAddress@2@GG@Z)
    1>..\Release\snmp++.dll : fatal error LNK1120: 36 unresolved externals
    1>
    1>Build FAILED.
    1>
    1>Time Elapsed 00:00:00.14
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    
    

    this is the  function i use on to call the library: 

     

    #include "stdafx.h"
    #include "snmp_pp/snmp_pp.h"
    #include <stdlib.h>
    #include <stdio.h>
    
    using namespace Snmp_pp;
    #include <iostream>
    
    
    int _tmain(int argc, _TCHAR* argv[])
    {
     Snmp::socket_startup();
    
    	return 0;
    }
    

    This doesn't make sense since the error only comes up when i am calling a function( if i remove the " Snmp::socket_startup();" solution will compile)

     

    any ideas ?? 

     

    thanks 

    Monday, July 26, 2010 8:37 PM

All replies

  •  when i try to use the library  (calling one of the function)  it  gives the fellowing error: 
    ...
    1>address.obj : error LNK2019: unresolved external symbol _htonl@4 referenced in function "protected: int __thiscall Snmp_pp::IpAddress::parse_coloned_ipstring(char const *)" (?parse_coloned_ipstring@IpAddress@Snmp_pp@@IAEHPBD@Z)

    Add Ws2_32.lib to the list of libraries that you link to.

    Dave

    Monday, July 26, 2010 9:10 PM
  • hi, that reduced the number of link errors.. here is the new list

    > All outputs are up-to-date.
    2>snmp++.lib(usm_v3.obj) : error LNK2001: unresolved external symbol "public: __thiscall Snmp_pp::AuthPriv::~AuthPriv(void)" (??1AuthPriv@Snmp_pp@@QAE@XZ)
    2>snmp++.lib(usm_v3.obj) : error LNK2001: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::password_to_key_priv(int,int,unsigned char const *,unsigned int,unsigned char const *,unsigned int,unsigned char *,unsigned int *)" (?password_to_key_priv@AuthPriv@Snmp_pp@@QAEHHHPBEI0IPAEPAI@Z)
    2>snmp++.lib(usm_v3.obj) : error LNK2001: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::password_to_key_auth(int,unsigned char const *,unsigned int,unsigned char const *,unsigned int,unsigned char *,unsigned int *)" (?password_to_key_auth@AuthPriv@Snmp_pp@@QAEHHPBEI0IPAEPAI@Z)
    2>snmp++.lib(usm_v3.obj) : error LNK2001: unresolved external symbol "public: class Snmp_pp::Priv * __thiscall Snmp_pp::AuthPriv::get_priv(int)" (?get_priv@AuthPriv@Snmp_pp@@QAEPAVPriv@2@H@Z)
    2>snmp++.lib(usm_v3.obj) : error LNK2001: unresolved external symbol "public: class Snmp_pp::Auth * __thiscall Snmp_pp::AuthPriv::get_auth(int)" (?get_auth@AuthPriv@Snmp_pp@@QAEPAVAuth@2@H@Z)
    2>snmp++.lib(usm_v3.obj) : error LNK2001: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::get_priv_id(char const *)const " (?get_priv_id@AuthPriv@Snmp_pp@@QBEHPBD@Z)
    2>snmp++.lib(usm_v3.obj) : error LNK2001: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::get_auth_id(char const *)const " (?get_auth_id@AuthPriv@Snmp_pp@@QBEHPBD@Z)
    2>snmp++.lib(usm_v3.obj) : error LNK2001: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::add_default_modules(void)" (?add_default_modules@AuthPriv@Snmp_pp@@QAEHXZ)
    2>snmp++.lib(usm_v3.obj) : error LNK2001: unresolved external symbol "public: __thiscall Snmp_pp::AuthPriv::AuthPriv(int &)" (??0AuthPriv@Snmp_pp@@QAE@AAH@Z)
    2>snmp++.lib(usm_v3.obj) : error LNK2001: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::get_keychange_value(int,class Snmp_pp::OctetStr const &,class Snmp_pp::OctetStr const &,class Snmp_pp::OctetStr &)" (?get_keychange_value@AuthPriv@Snmp_pp@@QAEHHABVOctetStr@2@0AAV32@@Z)
    2>snmp++.lib(usm_v3.obj) : error LNK2001: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::auth_out_msg(int,unsigned char const *,unsigned char *,int,unsigned char *)" (?auth_out_msg@AuthPriv@Snmp_pp@@QAEHHPBEPAEH1@Z)
    2>snmp++.lib(usm_v3.obj) : error LNK2001: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::get_auth_params_len(int)" (?get_auth_params_len@AuthPriv@Snmp_pp@@QAEHH@Z)
    2>snmp++.lib(usm_v3.obj) : error LNK2001: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::encrypt_msg(int,unsigned char const *,unsigned int,unsigned char const *,unsigned int,unsigned char *,unsigned int *,unsigned char *,unsigned int *,unsigned long,unsigned long)" (?encrypt_msg@AuthPriv@Snmp_pp@@QAEHHPBEI0IPAEPAI12KK@Z)
    2>snmp++.lib(usm_v3.obj) : error LNK2001: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::get_priv_params_len(int)" (?get_priv_params_len@AuthPriv@Snmp_pp@@QAEHH@Z)
    2>snmp++.lib(usm_v3.obj) : error LNK2001: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::decrypt_msg(int,unsigned char const *,unsigned int,unsigned char const *,unsigned int,unsigned char *,unsigned int *,unsigned char const *,unsigned int,unsigned long,unsigned long)" (?decrypt_msg@AuthPriv@Snmp_pp@@QAEHHPBEI0IPAEPAI0IKK@Z)
    2>snmp++.lib(usm_v3.obj) : error LNK2001: unresolved external symbol "public: int __thiscall Snmp_pp::AuthPriv::auth_inc_msg(int,unsigned char const *,unsigned char *,int,unsigned char *,int)" (?auth_inc_msg@AuthPriv@Snmp_pp@@QAEHHPBEPAEH1H@Z)
    2>C:\Users\Kurt\Desktop\msvc\Release\Gremlin2.exe : fatal error LNK1120: 16 unresolved externals
    2>
    2>Build FAILED.
    2>
    2>Time Elapsed 00:00:00.16
    ========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    
    

    Monday, July 26, 2010 9:54 PM
  • >hi, that reduced the number of link errors.. here is the new list

    Those look like they're part of your Snmp library - are you missing
    linking that in as well?

    Dave

    Tuesday, July 27, 2010 7:03 AM
  • nop, its linked 
    Tuesday, July 27, 2010 9:06 AM
  • >nop, its linked 

    The linker clearly doesn't have 'AuthPriv' - whatever that is.
    Presumably that's in some of your code (or another library). It's
    either missing being linked, or the compiled code/object library
    doesn't match the definitions that other things are trying to use.

    Dave

    Tuesday, July 27, 2010 9:19 AM