//Date: Wed, 1 Aug 2007 18:03:42 +0800 (CST)
//From: =?big5?q?=A9U=A7=A3=20=C2=B2?= <[EMAIL PROTECTED]>
//Subject: Re: Problem about building net-snmp-5.4.1 with vc++
//To: [email protected]
//Message-ID: <[EMAIL PROTECTED]>
//Content-Type: text/plain; charset="big5"
//
//
//
////  Date: Tue, 31 Jul 2007 22:33:58 +0800 (CST)
////From: =?big5?q?=A9U=A7=A3=20=C2=B2?= 
////Subject: Problem about building net-snmp-5.4.1 with vc++
////To: [email protected]
////Message-ID: <[EMAIL PROTECTED]>
////Content-Type: text/plain; charset="big5"
////
////in project snmpdsdk of win32sdk.dsw error LNK2019: unresolved external
//// errors _init_at in function _init_mib_modules reference LNK2019:
//// unresolved external errors _init_icmp in function _init_mib_modules 
////The error is the same for _init_interfaces, _init_ip, _init_tcp,
//// _init_tcpTable, _init_udp _init_udpTable, _init_var_route in function
//// _init_mib_modules reference. I use Micrisift Visual C++ (Visual Studio .Net
//// 2003) to compile them,and I have finished the libsdll.dsw.What's
//// wrong?
//Dear everybody:
//Isn't installing PSDK unnecessary while using .Net 2003 to compile?I
// don't know what's wrong.Now I do #undef HAVE_WIN32_PLATFORM_SDK and use
// the "libsdll.dsw" and win32.dsw to build net-snmp.I extend the Agent(
// Add the my.h and my.c files to my 'netsnmpmibs' project in VC++.  Follow
// the readme.win32.) and rebuild the netsnmpmibs' and 'snmpd'. Something
// wrong in 'snmpd' of 'win32.dsw'. The VC says that "
// netsnmpmibs.lib(my.obj) : error LNK2019:  can't find  _netsnmp_check_vb_type 
in function
//  _handle_sqLocation reference from external library data type or
// function symbols".The field sqLocation is a managed object which can be 
readed
// and written.I use "mib2c" to product the templete code.The
// "netsnmp_check_vb_type" which is yielded by mib2c,and why VC said it can't be
// found?If I comment the "netsnmp_check_vb_type(...)" and rebuild the
// 'netsnmpmibs' and 'snmpd'.,I can successfully build and the net-snmp can
// work.The netsnmp_check_vb_type(...) is the net-snmp api,why vc can't
// find it.The "additional dependency" of snmpd project is  by
// default(netsnmp.lib netsnmpagent.lib netsnmpmibs.lib netsnmphelpers.lib
// ws2_32.lib).What should I do to  solve this problem?Thanks.
The compiler seems to me that it is kidding.If I change the function 
"netsnmp_check_vb_type" to the function "netsnmp_check_vb_type_and_size".I can 
build it successfully.
I check the check_varbind.c(\net-snmp-5.4.1\snmplib) and 
check_varbind.h(\net-snmp-5.4.1\include\net-snmp\library),and everything seems 
to be OK,and why the result is different?
I check the netsnmp.lib and I can find the "netsnmp_check_vb_type_and_size" but 
not find the "netsnmp_check_vb_type" word.What's wrong with libsnmp_dll project 
in the libsdll.dsw?

       設定安全圖章,保護您的 Yahoo!奇摩帳號不被駭客盜用!
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to