Re: Fwd: C++ Trouble

2013-10-04 Thread Magnus Fromreide
On Fri, 2013-10-04 at 09:31 -0400, Frozen Puck wrote: > I took Magnus' advice and saved the intermediate C files, comparing > the one generated for the C version vs the one for C++. As it turns > out, for whatever reason, the C++ version was missing the call to > init_() > > > SO I added the call

Re: Fwd: C++ Trouble

2013-10-04 Thread Frozen Puck
I took Magnus' advice and saved the intermediate C files, comparing the one generated for the C version vs the one for C++. As it turns out, for whatever reason, the C++ version was missing the call to init_() SO I added the call where it should be and produced .o's for the intermediate and cpp, t

Re: Fwd: C++ Trouble

2013-10-03 Thread Magnus Fromreide
On Thu, 2013-10-03 at 14:42 -0400, Frozen Puck wrote: > > > I have the most basic, simple starter sub-agent which simply outputs a > hard-coded string (for now), which works fine when compiled as a C > module: > # net-snmp-config --compile-subagent Ctest sinIDENT.c > > (compiles cleanly) > # .

Fwd: C++ Trouble

2013-10-03 Thread Frozen Puck
I have the most basic, simple starter sub-agent which simply outputs a hard-coded string (for now), which works fine when compiled as a C module: # net-snmp-config --compile-subagent Ctest sinIDENT.c (compiles cleanly) # ./Ctest # snmpget -v 1 -c public localhost sinIDENT.0 # SIN-TOP-LEVEL-0::si