Alex Burger wrote:
Yeah... Both VC++ Express and PSDK have cmd.exe environments, but the environment variables are different... (duh)Daniel Lacey wrote:I tried to compile net-snmp as in section "Win32\build.bat script" and using the Visual C++ application. The BAT method gives me an error caused by:if (! (-d $ENV{MSVCDir})) { print "\nPlease run VCVARS32.BAT first to set up the Visual Studio build\n" . "environment.\n\n"; system("pause"); exit; }Just remove that section of code, or change MSVCDir to VCINSTALLDIR. It's just a simple check to make sure the user ran vcvars32 or opened a proper MSVC command prompt. I will fix this for the next release.When trying from Visual C++, I get errors about not being able to find winsock.h... It is in the PSDK under Server 2003 R2... Is there something obvious I missed in setting up the PSDK for XP? (I did read the docs, and setup VC++ paths to put the SDK before the VC++ for exe, includes, etc.)It's strange that the PSDK is not included by default. I think I had the same problem with the full MSVC 2005. With MSVC and the downloaded PSDK, there are build command prompts under Start - Programs - Microsoft Platform SDK February 2003 that include the PSDK folder. Is there something similar in C++ Express? Alex BTW - nmake worked and built apps. under the VC++ Express build environment... I only tested snmpwalk against the MS SNMP agent on the same machine... I had to add an include path and libpath to several Makefile.in files to pick up the PSDK files, along with an apparent change to the relative position of snmpNotifyFilterTable_data_access.c and snmpNotifyFilterTable_interface.c in the distribution (I am using net-snmp 5.4). This was all really simple once I added the necessary PSDK path in VC++... Like I said, I am new to MS development and spin my wheels a bit... This was all done in the VC++ Express build environment. As I look back over what I did, I should have used environment variables for the include and lib changes instead of hard coding them in the makefiles... Give me a little more time to clean this up and rebuild, and I can send you some diffs. I expect to get this done by the end of next week. I expect that if I build using the PSDK cmd.exe build environment, using the environment variables there, that the VC++ Express stuff will be "included" as well... I "assume" that I can put the needed build environment vars into a makefile and have nmake use them... |
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders