Re: about gcc -o snmpdemoapp ... -lsnmp

Thomas Anders <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Clement Hsu wrote:
>  when I apply the Makefile supported from
> http://www.net-snmp.org/tutorial/tutorial-5/toolkit/demoapp/Makefile
> 
> and execute  make snmpdemoapp, the following error message occurring :
> 
> 
> #make snmpdemoapp
> 
> cc     snmpdemoapp.c   -o snmpdemoapp
> /tmp/ccyJBvOl.o: In function `main':snmpdemoapp.c:(.text+0x36): undefined
> reference to `init_snmp'

What's the output of "net-snmp-config --libs"?

What if you call

  cc  snmpdemoapp.c -o snmpdemoapp `net-snmp-config --libs`

directly?

If you installed net-snmp to a non-standard location, you may need to give the
full path to net-snmp-config.


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)

-------------------------------------------------------------------------
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-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.