
Cardascia Lorenzo writes:
Cardascia> I'd like to do a MIB compiler by using libSIM, then I think Cardascia> to do it by parsing a SMIv1/SMIv2 MIB to have an Cardascia> intermediate file (MOSY STYLE) that it's easier to process Cardascia> than MIB module. I think to use the intermediate file so Cardascia> generated to build some C++ classes for my software... Is Cardascia> it possible to do it using libsmi-0.2.5.tar.gz in Windows Cardascia> NT enviroments with VC++6.0 ?
There is IMHO no value in going through an intermediate format since you can use the libsmi API directly to access the information you need.
Cardascia> Is there an example source code that I can analyze to know Cardascia> how I can write my code ?
Look at the smidump implementation and the various dump-xxxx.c output drivers. All you have to do is to add another output driver.
Cardascia> I read README.win file to compile libSIM but I didn't Cardascia> success, then I constructed a new project in VC++ with your Cardascia> makefile. I successed to compile some files (win.c, Cardascia> data.c, check.c, error.c, util.c, smi.c and parser-smi.tab) Cardascia> but I had the error shown below on scanner-smi.c file.
Cardascia> Can Anyone help me to tell what is the problem ? How can I Cardascia> solve my problem to compile libSMI ?
The makefile works fine for me with VC++ 6.0 - but it might be less then optimal. I actually have not much understanding about the Win32 software development stuff. In other words, I can't help you much. Someone who has more substantial Win32 knowledge needs to help us out here.
/js