On Wed, Sep 14, 2005 at 03:01:41PM +0800, ?????? wrote:
> When I add a C file in the netsnmpmibs project, it works great.But
> when I change the C file into Cpp file without changing the file
> content,it gives me an error.
> 
> When I build snmpd,it can't find the mib init function which works
> well in C file.
> Who can tell me what happens and how can I solve the problem?

Have you declared your mib init function as an extern "C" function? Probably
not since you didn't change anything.

Otherwise C++ name mangling would probably mangle the name so that netsnmp
fails to recognise it.

/MF


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to