AGENT++ v3.4 and SNMP++ v3.1 on Windows

Sean mathewss____nutech.com
Fri Aug 24 09:17:59 CEST 2001


---------- Original Message ----------------------------------
From: "George Krasovec" <gkrasovec____astes.com>
Reply-To: <gkrasovec____astes.com>
Date: Thu, 23 Aug 2001 23:37:25 -0600

>Have tried unsuccessfully to install on Windows 2K using CygWin. Tried to
>adapt the makefile for solaris, but can't find the right combination of
>compiler options and switches to get clean build.
>
>Has anyone built these on W2K?
>
>Would appreciate CygWIn make file or MS VC 6 project workspace for building.
>
>Thanks,
>
>George Krasovec
>gkrasovec at astes.com
>
>

 First off i have built several unix ports using cgywin
and have only ever producted very unstable programs. So
if possible i suggest you never use it.. Sometimes
if the code is using unix specifc socket code and not 
standard socket code then you may have no choice..
In this case though the SNMP++ lib seems to use
very basic socket() calls and is nice and clean 
in coding design so porting is basicly not a problem..


To use Visual C++ (any version)

first you need
http://www.agentpp.com/libdes-l-4.01.tar.gz
http://www.agentpp.com/snmp++v3.1.3b.tar.gz

untarZ these into there own folders..

Ex.

F:\MasterProjects\snmp++
F:\MasterProjects\libdes


 Create a new visual c project that is a static win32
library.. no pre compiled headers or MFC..


 Under project settings.
select "Debug Configuration" then on the C/C++ tab and
Code Generation drop down select "Debug multithreaded"

 The above should be repeated for release using "Multithreaded"

Note.. the above settings is just what i do because i realy
never make any projects that are non threaded capable..
but if you need a single threaded LIB then ignore the above
or just create a lib specific for that purpose..


Add the following files..

The libedes files are needed for password crypt..

F:\MasterProjects\snmp++\src\vb.cpp
F:\MasterProjects\snmp++\src\v3.cpp
F:\MasterProjects\snmp++\src\uxsnmp.cpp
F:\MasterProjects\snmp++\src\usm_v3.cpp
F:\MasterProjects\snmp++\src\usertimeout.cpp
F:\MasterProjects\snmp++\src\userdefined.cpp
F:\MasterProjects\snmp++\src\timetick.cpp
F:\MasterProjects\snmp++\src\target.cpp
F:\MasterProjects\snmp++\src\snmpmsg.cpp
F:\MasterProjects\snmp++\src\smival.cpp
F:\MasterProjects\snmp++\src\sha.cpp
F:\MasterProjects\snmp++\src\reentrant.cpp
F:\MasterProjects\snmp++\src\pdu.cpp
F:\MasterProjects\snmp++\src\oid_def.cpp
F:\MasterProjects\snmp++\src\oid.cpp
F:\MasterProjects\snmp++\src\octet.cpp
F:\MasterProjects\snmp++\src\notifyqueue.cpp
F:\MasterProjects\snmp++\src\msgqueue.cpp
F:\MasterProjects\snmp++\src\msec.cpp
F:\MasterProjects\snmp++\src\mp_v3.cpp
F:\MasterProjects\snmp++\src\md5c.cpp
F:\MasterProjects\snmp++\src\integer.cpp
F:\MasterProjects\snmp++\src\idea.cpp
F:\MasterProjects\snmp++\src\gauge.cpp
F:\MasterProjects\snmp++\src\eventlist.cpp
F:\MasterProjects\snmp++\src\ctr64.cpp
F:\MasterProjects\snmp++\src\counter.cpp
F:\MasterProjects\snmp++\src\auth_priv.cpp
F:\MasterProjects\snmp++\src\asn1.cpp
F:\MasterProjects\snmp++\src\address.cpp

F:\MasterProjects\libdes\fcrypt.c
F:\MasterProjects\libdes\ncbc_enc.c
F:\MasterProjects\libdes\set_key.c
F:\MasterProjects\libdes\ede_enc.c
F:\MasterProjects\libdes\ecb_enc.c
F:\MasterProjects\libdes\des_enc.c
F:\MasterProjects\libdes\cbc_enc.c

compile and link into a lib..
then just add the lib to any project you need snmp..

in that project add 
F:\MasterProjects\snmp++\src\test_app.cpp

you should also note you neet to make sure the preprocessor
additional includes directory in the project points 
to /snmp++/include


 Hope this helps.. 
   if you have probs post another message..



--
 Regards
  Sean Mathews Nu Tech CTO

struct SoftwareProfessional {
   double salary;
   long   lunches;
   float  jobs;
   char   unstable;
   void   work;
   short  tempers;
};
--



More information about the AGENTPP mailing list