On Mon, 2010-01-25 at 18:28 +0100, Nikola Vranic wrote: > Hello, > > I configured net-snmp 5.5 with > > /configure --host=arm --target=arm --enable-mini-agent > --disable-manuals --disable-scripts --disable-debugging > --with-cc=arm-linux-gnu-gcc --with-endianness=little > -- disable-mib-loading > > Then enter make and make install and everything is finish fine. When I > compile watcher.c from net-snmp examples I got this erros: > > ash-3.2$ arm-linux-gcc watched.c -o test -L./lib -I./include > lib/libnetsnmpagent.a lib/libnetsnmp.a lib/libnetsnmphelpers.a > lib/libnetsnmpmibs.a
You are giving the libraries in the wrong order. Try arm-linux-gcc watched.c -o test -L./lib -I./include -lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs -lnetsnmp or, even simpler arm-linux-gcc watched.c -o test $(./bin/net-snmp-config --agent-libs) /MF ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
