Re: Compile with Visual C++ 8.0 (VS 2005)

This is a discussion on Re: Compile with Visual C++ 8.0 (VS 2005) within the SNMP Users forums, part of the Networking and Network Related category; Sylvain Lapendry: > Do you know if ther's a way to compile net-snmp > 5.4.1 with ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-12-2007
Pete Wilson
 
Posts: n/a
Default Re: Compile with Visual C++ 8.0 (VS 2005)

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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:45 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0