I finally got the Visual C++ Express and PSDK on my XP machine... It does have NMAKE!!! That's the end of the good news... 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; } Yes, MSVCDir is not set, here is my env: ALLUSERSPROFILE=C:\Documents and Settings\All Users APPDATA=C:\Documents and Settings\Dan Lacey\Application Data CommonProgramFiles=C:\Program Files\Common Files COMPUTERNAME=DPLLAPTOP ComSpec=C:\WINDOWS\system32\cmd.exe DevEnvDir=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE FP_NO_HOST_CHECK=NO FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework FrameworkSDKDir=C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0 FrameworkVersion=v2.0.50727 HOMEDRIVE=C: HOMEPATH=\Documents and Settings\Dan Lacey INCLUDE=C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE; LIB=C:\Program Files\Microsoft Visual Studio 8\VC\LIB;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\lib; LIBPATH=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 LOGONSERVER=\\DPLLAPTOP NUMBER_OF_PROCESSORS=1 OS=Windows_NT Path=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files\Mic rosoft Visual Studio 8\VC\BIN;C:\Program Files\Microsoft Visual Studio 8\Common7 \Tools;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin;C:\WINDOWS\Micros oft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 8\VC\VCPac kages;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Pr ogram Files\Symantec\pcAnywhere\;C:\usr\bin;C:\Program Files\SSH Communications Security\SSH Secure Shell;C:\Program Files\CVSNT\ PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 8, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=0d08 ProgramFiles=C:\Program Files PROMPT=$P$G SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\DOCUME~1\DANLAC~1\LOCALS~1\Temp TMP=C:\DOCUME~1\DANLAC~1\LOCALS~1\Temp USERDOMAIN=DPLLAPTOP USERNAME=Dan Lacey USERPROFILE=C:\Documents and Settings\Dan Lacey VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8\VC VS80COMNTOOLS=C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\ VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8 windir=C:\WINDOWS 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.) Here is the output from VC++: ------ Rebuild All started: Project: libagent, Configuration: Debug Win32 ------ Deleting intermediate and output files for project 'libagent', configuration 'Debug|Win32' Compiling... agent_handler.c c:\NetSNMP\Win32\net-snmp-5.4\include\net-snmp/types.h(37) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory agent_index.c ..\..\agent\agent_index.c(22) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory agent_read_config.c ..\..\agent\agent_read_config.c(61) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory agent_registry.c ..\..\agent\agent_registry.c(34) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory agent_trap.c ..\..\agent\agent_trap.c(53) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory snmp_agent.c ..\..\agent\snmp_agent.c(83) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory snmp_vars.c ..\..\agent\snmp_vars.c(90) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory Generating Code... Build log was saved at "file://c:\NetSNMP\Win32\net-snmp-5.4\win32\libagent\Debug\BuildLog.htm" libagent - 7 error(s), 0 warning(s) ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== Again, this is my first attempt to develop on an MS platform... And reading the manuals, well I am sure I missed something simple that I did not understand... Alex Burger wrote: Daniel Lacey wrote:I am looking into purchasing MS Visual "something". From the net-snmp docs, I went looking for Visual C++. I went to the MS product site and found the free Visual C++ 2005 Express Edition.Would this be able to compile a working net-snmp?It should compile with Visual C++ 2005 Express, but you will need nmake.exe. The last time I tried the express version (not sure if it was 2005) it did not include nmake.exe. Using nmake.exe from VC++ 6.0 worked with Express. Hopefully the 2005 version includes nmake. Follow the steps in README.win32 for building with build.bat and let us know how it goes! Alex |
------------------------------------------------------------------------- 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