
Hi,
AK> Is there any SMI library is available for windows platform , so that AK> I can use that library directly along with smi.h header file
well, if you want to build something with the lib, you should be able to create the lib yourself ;-)
but anyway, you may like to fetch a fresh version built from the cvs archive with vc6 here:
http://www.gaertner.de/~schoenfr/libsmi/smi-lib-vc6-binary-200205285.zip
to contribute at least something more useful to the list a small diff is appended. it contains
- Added forward declaration for getTypePrefix() to tools/dump-xsd.c. VC6 does not compile without.
- Added comment to win/README.win describing how to generate the files not in the CVS archive.
- Added smidiff.exe as a target to build and install to win/makefile.
have fun, Erik
diff -u -d -r libsmi-cvs/tools/dump-xsd.c libsmi/tools/dump-xsd.c --- libsmi-cvs/tools/dump-xsd.c Sat May 25 13:02:47 2002 +++ libsmi/tools/dump-xsd.c Sat May 25 13:23:40 2002 @@ -62,6 +62,7 @@ /* some forward declarations */ static void fprintElement( FILE *f, int indent, SmiNode *smiNode, const char *prefix ); +static char* getTypePrefix( char *typeName );
static char *getStringBasetype(SmiBasetype basetype) { diff -u -d -r libsmi-cvs/win/README.win libsmi/win/README.win --- libsmi-cvs/win/README.win Tue Aug 28 11:20:35 2001 +++ libsmi/win/README.win Sat May 25 13:38:42 2002 @@ -45,6 +45,20 @@
+If you grabbed the CVS version and some files seems to be missing: +================================================================== + +You may generate these files on another platform (Linux seems to work +fine) by running: + + cd libsmi ## the sources from the CVS archive + ./autogen.sh ## generates configure script an runs it + cd lib + make errormacros.h parser-smi.c parser-sming.c \ + scanner-smi.c scanner-sming.c smi.h + + + COMMENTS: =========
diff -u -d -r libsmi-cvs/win/makefile libsmi/win/makefile --- libsmi-cvs/win/makefile Sun May 19 20:38:14 2002 +++ libsmi/win/makefile Sat May 25 13:29:03 2002 @@ -100,6 +100,9 @@ $(TMPDIR)\dump-scli.obj \ $(TMPDIR)\dump-xsd.obj
+SMIDIFFOBJS = \ + $(TMPDIR)\smidiff.obj + SMILIB = smi.lib
## @@ -138,7 +141,7 @@ $(SMILIB): $(LIBSMIOBJS) $(implib) /out:smi.lib $(LIBSMIOBJS)
-tools: smiquery.exe smilint.exe smidump.exe +tools: smiquery.exe smilint.exe smidump.exe smidiff.exe
smiquery.exe: $(SMIQUERYOBJS) $(SMILIB) $(cc32) $(DEFINES) /osmiquery.exe $(SMIQUERYOBJS) $(SMILIB) @@ -149,6 +152,10 @@ smidump.exe: $(SMIDUMPOBJS) $(SMILIB) $(cc32) $(DEFINES) \ /osmidump.exe $(SMIDUMPOBJS) $(SMILIB) + +smidiff.exe: $(SMIDIFFOBJS) $(SMILIB) + $(cc32) $(DEFINES) \ + /osmidiff.exe $(SMIDIFFOBJS) $(SMILIB)
clean: del *.lib