Re: problem in compiling program

Thomas Anders <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Puru Govind wrote:
> Well ppl i am having problems in compiling my programs. I m using
> fedora core3 and followed the instructions as given on the website. i
> downloaded the "net-snmp.1.4.rc1.tar" . And then installed the
> libraray as a root. Then i ran snmpd. I was just trying the first
> example given on the site(snmpdemoapp.c). But when i compiled it using
> the makefile given it gave few errorrs. 

Which errors?

> Then i tried compiling it this way(in two steps):
> cc -I/usr/local/include -g   -c snmpdemoapp.c -o snmpdemoapp.o
> this ran perfectly well
> cc -o snmpdemoapp snmpdemoapp.o -lsnmp

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


+Thomas

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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.