On Thu, Feb 3, 2011 at 1:24 PM, Ramesh Kumar <[email protected]> wrote:
> Hi
>
> I compiled net-snmp in windows by following steps
>
> 1. Open a command prompt
>
> 2. Initialize the Visual Studio build environment by running VCVARS32.bat
> which can be found in the bin folder of your Visual Studio install
> folder.
>
> 3. Run win32\build.bat
>
> 4. enable 'Install development files', but without SDK.
>
> then, I include lib files(netsnmp.lib,
> netsnmpagent.lib,netsnmptrapd.lib, netsnmpmibs.lib) stored in
> 'C:\usr\lib', into my Qt project.
>
> When I compile the project in release mode following error comes:
>
> netsnmp.lib(snmp_logging.obj) : error LNK2019: unresolved external
> symbol __imp__ReportEventA@36 referenced in function
> _log_handler_syslog
> netsnmp.lib(snmp_logging.obj) : error LNK2019: unresolved external
> symbol __imp__CloseEventLog@4 referenced in function
> _snmp_disable_syslog_entry
> netsnmp.lib(snmp_logging.obj) : error LNK2019: unresolved external
> symbol __imp__OpenEventLogA@8 referenced in function
> _snmp_enable_syslog_ident
> netsnmp.lib(tools.obj) : error LNK2019: unresolved external symbol
> __imp__RegCloseKey@4 referenced in function _netsnmp_getenv
> netsnmp.lib(system.obj) : error LNK2001: unresolved external symbol
> __imp__RegCloseKey@4
> netsnmp.lib(tools.obj) : error LNK2019: unresolved external symbol
> __imp__RegQueryValueExA@24 referenced in function _netsnmp_getenv
> netsnmp.lib(system.obj) : error LNK2001: unresolved external symbol
> __imp__RegQueryValueExA@24
> netsnmp.lib(tools.obj) : error LNK2019: unresolved external symbol
> __imp__RegOpenKeyExA@20 referenced in function _netsnmp_getenv
> release\practice1.exe : fatal error LNK1120: 6 unresolved externals
>
> What could be the reason for this error????
>
Taking a basic course on Windows programming could help: these error
messages have nothing to do with Net-SNMP but are caused by missing
libraries in your project. As an example, you can find here which library is
needed for __imp__ReportEventA@36:
http://msdn.microsoft.com/en-us/library/aa363679%28v=vs.85%29.aspx.
Bart.
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders