[AGENT++] SNMP++ compile in VC6 success, but now something goes wrong when build snmp program

Glenn Puchtel gpuchtel at gplicity.com
Sat Dec 18 13:35:57 CET 2004


First, I'm assuming you created (or used an existing) VC6 project for
opsnee. Based on this assumption consider the following:

	The warning: "LINK : warning LNK4098: defaultlib "LIBCMT"
conflicts with use of other libs; use /NODEFAULTLIB:library" indicates
that the snmp and opsnee where configured to used different C run-time
libraries at link time.  Ensure that your runtime libraries match
snmp++'s, which is; Mult-threaded (/MT) for the release version and
Multi-threaded debug (/MTd) for the debug version.

	Most of your other unresolved externals are because you are not
linking with: ws2_32.lib.  Where functions like _htons and inet_addr are
found.

Regards,
Glenn


-----Original Message-----
From: agentpp-bounces at agentpp.org [mailto:agentpp-bounces at agentpp.org]
On Behalf Of ???
Sent: Saturday, December 18, 2004 3:53 AM
To: agentpp
Subject: [AGENT++] SNMP++ compile in VC6 success,but now something goes
wrong when build snmp program

Hi all,
	I have successfully compiled snmp++v3.2.14 together with
opsneel0.9.7e in WindowsXP using VC6.0 
	And now I have the snmp_pp.lib library file.(I use the  openssl
for des?sha1 etc,but neither libdes nor libtom*)
	
	I chang the snmpGet.cpp file within the snmp++v3.2.14 tar ball
and compile it in VC6

When compiling ,it succeed just only with a warning . But during
building , it shows the following error:

--------------------Configuration: snmp - Win32
Debug--------------------
Linking...
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other
libs; use /NODEFAULTLIB:library
snmp_pp.lib(uxsnmp.obj) : error LNK2001: unresolved external symbol
_select at 20
snmp_pp.lib(eventlistholder.obj) : error LNK2001: unresolved external
symbol _select at 20
snmp_pp.lib(uxsnmp.obj) : error LNK2001: unresolved external symbol
_sendto at 24
snmp_pp.lib(uxsnmp.obj) : error LNK2001: unresolved external symbol
_htons at 4
snmp_pp.lib(address.obj) : error LNK2001: unresolved external symbol
_htons at 4
snmp_pp.lib(notifyqueue.obj) : error LNK2001: unresolved external symbol
_htons at 4
snmp_pp.lib(uxsnmp.obj) : error LNK2001: unresolved external symbol
_inet_addr at 4
snmp_pp.lib(address.obj) : error LNK2001: unresolved external symbol
_inet_addr at 4
snmp_pp.lib(snmpmsg.obj) : error LNK2001: unresolved external symbol
_inet_addr at 4
snmp_pp.lib(notifyqueue.obj) : error LNK2001: unresolved external symbol
_inet_addr at 4
snmp_pp.lib(uxsnmp.obj) : error LNK2001: unresolved external symbol
_ntohs at 4
snmp_pp.lib(address.obj) : error LNK2001: unresolved external symbol
_ntohs at 4
snmp_pp.lib(uxsnmp.obj) : error LNK2001: unresolved external symbol
_inet_ntoa at 4
snmp_pp.lib(address.obj) : error LNK2001: unresolved external symbol
_inet_ntoa at 4
snmp_pp.lib(snmpmsg.obj) : error LNK2001: unresolved external symbol
_inet_ntoa at 4
snmp_pp.lib(uxsnmp.obj) : error LNK2001: unresolved external symbol
_recvfrom at 24
snmp_pp.lib(uxsnmp.obj) : error LNK2001: unresolved external symbol
_WSAStartup at 8
snmp_pp.lib(uxsnmp.obj) : error LNK2001: unresolved external symbol
_WSACleanup at 0
snmp_pp.lib(uxsnmp.obj) : error LNK2001: unresolved external symbol
_setsockopt at 20
snmp_pp.lib(uxsnmp.obj) : error LNK2001: unresolved external symbol
_bind at 12
snmp_pp.lib(notifyqueue.obj) : error LNK2001: unresolved external symbol
_bind at 12
snmp_pp.lib(uxsnmp.obj) : error LNK2001: unresolved external symbol
_WSAGetLastError at 0
snmp_pp.lib(address.obj) : error LNK2001: unresolved external symbol
_WSAGetLastError at 0
snmp_pp.lib(uxsnmp.obj) : error LNK2001: unresolved external symbol
_socket at 12
snmp_pp.lib(notifyqueue.obj) : error LNK2001: unresolved external symbol
_socket at 12
snmp_pp.lib(uxsnmp.obj) : error LNK2001: unresolved external symbol
_closesocket at 4
snmp_pp.lib(notifyqueue.obj) : error LNK2001: unresolved external symbol
_closesocket at 4
snmp_pp.lib(uxsnmp.obj) : error LNK2001: unresolved external symbol
___WSAFDIsSet at 8
snmp_pp.lib(msgqueue.obj) : error LNK2001: unresolved external symbol
___WSAFDIsSet at 8
snmp_pp.lib(notifyqueue.obj) : error LNK2001: unresolved external symbol
___WSAFDIsSet at 8
snmp_pp.lib(userdefined.obj) : error LNK2001: unresolved external symbol
___WSAFDIsSet at 8
snmp_pp.lib(address.obj) : error LNK2001: unresolved external symbol
_gethostbyname at 4
snmp_pp.lib(address.obj) : error LNK2001: unresolved external symbol
_gethostbyaddr at 12
snmp_pp.lib(snmpmsg.obj) : error LNK2001: unresolved external symbol
_gethostname at 8
snmp_pp.lib(auth_priv.obj) : error LNK2001: unresolved external symbol
_SHA1_Final
snmp_pp.lib(auth_priv.obj) : error LNK2001: unresolved external symbol
_SHA1_Update
snmp_pp.lib(auth_priv.obj) : error LNK2001: unresolved external symbol
_SHA1_Init
snmp_pp.lib(auth_priv.obj) : error LNK2001: unresolved external symbol
_MD5_Final
snmp_pp.lib(auth_priv.obj) : error LNK2001: unresolved external symbol
_MD5_Update
snmp_pp.lib(auth_priv.obj) : error LNK2001: unresolved external symbol
_MD5_Init
snmp_pp.lib(auth_priv.obj) : error LNK2001: unresolved external symbol
_DES_ncbc_encrypt
snmp_pp.lib(auth_priv.obj) : error LNK2001: unresolved external symbol
_DES_key_sched
snmp_pp.lib(auth_priv.obj) : error LNK2001: unresolved external symbol
_htonl at 4
snmp_pp.lib(auth_priv.obj) : error LNK2001: unresolved external symbol
_AES_cfb128_encrypt
snmp_pp.lib(auth_priv.obj) : error LNK2001: unresolved external symbol
_AES_set_encrypt_key
snmp_pp.lib(asn1.obj) : error LNK2001: unresolved external symbol
_ntohl at 4
Debug/snmp.exe : fatal error LNK1120: 30 unresolved externals
Error executing link.exe.

snmp.exe - 47 error(s), 1 warning(s)

Also I have configured the library path in the VC correctly
Now I have now idea what is the reason.
Can any body help me out?

Regards!
 

        hfwu at seu.edu.cn
				2004-12-18


_______________________________________________
AGENTPP mailing list
AGENTPP at agentpp.org
http://agentpp.org/mailman/listinfo/agentpp





More information about the AGENTPP mailing list