Hi,

With your suggestions and adding extern 'c' to some missing places I
managed to build and run the agent without any mib modules.

But one problem which I found is that the net-snmp-config.h file
generated by configure script for --with-cc="g++" is missing some of the
#defines like STRTOL, STRTOUL etc which are present for normal gcc
compilation.
net-snmp defines these functions if #defines are not present in
net-snmp-config.h, so I am getting the redefinition error for functions
like strtol.
configure's test programs are failing with g++. Is there any work around
for this ?


Thanks,
Ujjwal


On Mon, 2004-10-04 at 19:13, Robert Story wrote:
> On 04 Oct 2004 11:46:20 +0530 ujjwal wrote:
> U> I am also getting the same kind of errors while compiling it with g++
> U> and probably because of strict type checking in g++.
> U> 
> U> Did anyone managed to build it with g++ without manually changing the
> U> code ?
> 
> Adding -fpermissive (gnu g++) helps with the type-checking, and
> -DNETSNMP_NO_INLINE helps with some of the missing link errors. But that's as
> far as I got with my investigation. I hope to revisit it when I get more time.



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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

Reply via email to