Sylvain Lapendry:

> Do you know if ther's a way to compile net-snmp
> 5.4.1 with VC++ 8.0 ?

I have also written a VC++ 8.0 application and I was
able to compile and then to link my app with the ~53
separate object files that are produced from the
library sources. I did not try to make a .lib file.
This is what I did -- comments/criticism very welcome.

1. Begin with the VC++6.0 .dsp file:
 
  net-snmp 5.4.1\win32\libsnmp\libsnmp.dsp

2. Let VC++8.0 convert that project from VC6 to VC8. 

3. Add to this library project every .c file in:

  net-snmp 5.4.1\snmplib 

4. In the directory:

  C:\SNMP projects\net-snmp 5.4.1\include\net-snmp

copy the file net-snmp-config.h.in to
net-snmp-config.h and then add to the project the ~13
.h files in that directory.

5. Add to the project every .h file in the directory:

  net-snmp 5.4.1\include\net-snmp\library

6. Modify net-snmp-config.h (step 4) appropriately.
There are a lot of changes to make, so in case you
want to see an example I've put my copy of this file
at:

  http://www.pwilson.net/net-snmp-config.h

7. Compile each .c file separately, putting the .obj
files in the Debug or Release directory.

8. Finally, to the application solution add each
separate object file from step 7 and build the app.
  
HTH. I did all these steps a few months ago and
documented each with my usual care (i.e., not at all),
so there might be many steps omitted or wrong. If you
run into problems, please let me know and we'll figure
it out.

-- Pete Wilson  

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
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-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to