On Tue, 2013-01-08 at 13:20 +0000, Chris Paton wrote:
> Hey guys,
> 
> 
> I've tried building NetSNMP for Windows 7 to use the .dll in my
> projects, but I had problems running the build.bat file. I ran it with
> the standard settings after running vcvarsall.bat for MSVC 2010. It
> seemed the problem was with the code in snmplib\read_config.c. I'm not
> sure how to fix it and was wondering if there was someone who could
> help me?
> 
> 
> I looked for the errors in the make.out file and this is what I found:
> 
> 
> ..\..\snmplib\read_config.c(545) : error C2143: syntax error : missing
> ';' before 'type'
> ..\..\snmplib\read_config.c(547) : error C2065: 'tmpbuf' : undeclared
> identifier
> ..\..\snmplib\read_config.c(547) : error C2109: subscript requires
> array or pointer type
> ..\..\snmplib\read_config.c(548) : error C2065: 'tmpbuf' : undeclared
> identifier
> ..\..\snmplib\read_config.c(548) : warning C4047: '=' : 'char *'
> differs in levels of indirection from 'int'
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 10.0\VC\BIN\cl.exe"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 10.0\VC\BIN\nmake.EXE"' : return code '0x2'
> Stop.
> 

Odd. tmpbuf is defined as

char tmpbuf[1];

a few lines above line 545 (I think - my line numbers does not match
yours, what version of the code are you using?) and the definition is
preceded by a {, isn't that the case for you as well?

/MF



------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to