>>>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?
I found that the libsnmp.def(\win32\libsnmp_dll\) was lack of some functions.If 
somebody meets the same problem(cant't find some functions,but they exist 
indeedly in \snmplib\*.c),you can add the function to libsnmp.def.Then rebuild 
the dll.
Nicklas.

       
____________________________________________________________________________________,
想即時通知通訊錄裡的所有親朋好友好消息,就來Yahoo!奇摩電子信箱發簡訊,一次搞定!http://tw.mobile.yahoo.com/texts/mail.php
-------------------------------------------------------------------------
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