Thanks a lot.. I did as you directed me. The error I posted in my first message is resolved now. But still some other errors are shown.
netsnmpmibs.lib(mib_modules.obj) : error LNK2001: unresolved external symbol _init_poe netsnmpmibs.lib(mib_modules.obj) : error LNK2001: unresolved external symbol _init_apps ..\bin\.\release/snmptrapd.exe : fatal error LNK1120: 12 unresolved externals NMAKE : fatal error U1077: 'link.exe' : return code '0x460' Stop. NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~4\VC98\BIN\NMAKE.EXE' : return code '0x2' Stop. Thanks On 8/23/05, Dave Shield <[EMAIL PROTECTED]> wrote: > [ Cc: to mailing list restored. > *Please* try to remember! ] > > On Tue, 2005-08-23 at 17:14 +0530, aakansha rajvi wrote: > > On 8/23/05, Dave Shield <[EMAIL PROTECTED]> wrote: > > > > > > > My directory structure is > > > > > > > > > > > > agent > > > > | > > > > mibgroup > > > > | > > > > test-mib > > > > | | > > > > poe apps...etc., > > > > | > > > > poe.c poe.h > > > > > > So the full path to "poe.h" is "agent/mibgroup/test-mib/poe/poe.h" > > > > > > After compiling the mib I got, poe.c and poe.h. > > This poe.h in "agent/mibgroup/test-mib/poe/poe.h" is got through the > > compilation of the corresponding MIB. > > OK - So that's the important header file. > This contains the definitions of the public interface > to your "poe" MIB implementation, so that's what any other > code must refer to. > > > > > > > Correspondingly test-mib.h is placed under agent/mibgroup. "poe.h" and > > > > "apps.h" is placed under agent/mibgroup/test-mib. > > > > > > So the full path to "poe.h" is "agent/mibgroup/test-mib/poe.h" > > > > Since the compiled poe mibs are placed in poe folder, I need to create > > a header file for this. > > No, you don't - not if you're using a Windows-based build environment. > > > > > The content of the poe.h in "agent/mibgroup/test-mib/poe.h" is > > > > config_require(test-mib/poe/poe); > > That's *only* relevant if you're using "configure" to set up the > build environment. Visual C++ doesn't use this at all. > > > > The definition of "init_poe()" is found in the lower-level > file "agent/mibgroup/test-mib/poe/poe.h", so this is what > 'mib_module_includes.h' must refer to. > > Try > #include "mibgroup/test-mib/poe/poe.h" > > instead. > > Dave > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
