On 9 January 2012 10:00, Auritz Arnaiz <[email protected]> wrote: > I´m trying to compile this code with Eclipse or Codeblocks in Windows XP. > The problem is that I have many errors like: "MAX_OID_LEN undeclared (first > use in this function) or SMNP_MSG_GETundeclared (first use in this > function)" and I think it is because it does not recognise the information > that is inside the header files, but I don´t know how to fix it. Any idea? > > #include <C:\Documents and Settings\arnaiz_auritz.EITB\Escritorio\Proyecto > SMNP\net-snmp-5.7.1\win32\net-snmp/net-snmp-config.h>
No - that won't work. These header files include numerous references to other header files, and you would need to change all of those to refer to the exact location of the installed distribution. The correct approach is to configure Eclipse or Codeblocks to know where to look for the header files - i.e. to add the root of the include tree to the search path, You also seem to be referring to files within the source code tree. You really need to install the package first (both libraries and header files), and then compile against those installed versions. Dave ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
