Hi,
        I am trying to develop an agent on windows 2000 server
where

  MSVC++ 6.0 SP6
  platform SDK          -set env and registered with MSVC
  ActivePerl 5.8.2
  gnu_regex.exe (0.12)                - activeperl  (dll copied to /winnt/system32/)
  net-snmp-5.2.1.2-1.win32.exe    -created snmpd and working all get,set.

are installed

  Then i have downloaded net-snmp-5.2.1.2.tar,
as a documentation i had tried with configure /nmake but it gives build error at line 181 of build.pl.

when i build this with graphical way ie
Microsoft Visual C++ - Workspace - Building

win32sdk.dsw  -> generated exe files,
snmpTCPDomain.c has 1 warning netsnmp_sock_buffer_set undefined

libsdll.dsw    -> generated libs and dll
snmplib_dll has 4 warnings about malloc, free,dmalloc are imported


finally i run install-net-snmp.bat

i have done all setting,including headers, libs, configurations as per documentation,
but still i am getting some link errors with my agent



Compiling...
netInformation.c
Linking...
netInformation.obj : error LNK2001: unresolved external symbol _netsnmp_register_scalar
netInformation.obj : error LNK2001: unresolved external symbol _netsnmp_create_handler_registration
MSVCRTD.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main
Debug/netInformation.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

netInformation.exe - 4 error(s), 0 warning(s)


i could not able to resolve this ,please any one help me.
please replay me ASAP

Thank you
Ashok




Reply via email to