
Frank Strauß wrote:
RAGHAVENDRA KRISTAM wrote:
Hi,
Thanks for the reply.
I am using windows version of libsmi.
I downloaded the latest libsmi(windows version) from the below location and replaced with the old one with new libsmi-0.4.5.zip but the problem still exists.
What do you mean by "new libsmi-0.4.5.zip"? Did you build this based from a fresh SVN checkout?
Recent changes are usually only available from the SVN repository. Note also, that I do not support Windows versions. In the past, Juergen has been so kind to prepare Windows packages from time to time, but it's definetely safer and more up to date to use the Subversion repository.
Some parts of SVN will not build with MSVC2005. I can try and "svn diff" but I have some unrelated changes that would make that difficult.
tools/rea.[ch] rename DEBUG to something else like DEBUG_REA
tools/dstring.c needs to include config.h and define va_copy e.g.
-#if !defined va_copy && defined __va_copy -#define va_copy __va_copy /* C99 draft proposal */ +#if !defined va_copy +# if defined __va_copy +# define va_copy __va_copy /* C99 draft proposal */ +# else +# define va_copy(lhs,rhs) (lhs) = (rhs) +# endif
and
tools/dstring.[ch]
you don't seem to be able to do inline functions so thing like this in dstring.h:
+#ifdef HAVE_WIN_H +char* +dstring_str(dstring_t *ds); +#else inline char* dstring_str(dstring_t *ds) { return ds ? ds->str : NULL; } +#endif
and in win/makefile:
-DEFINES = $(DEBUG) +DEFINES = $(DEBUG) /D_CRT_SECURE_NO_DEPRECATE=1
SMIXLATEOBJS = \ - $(TMPDIR)\smixlate.obj + $(TMPDIR)\smixlate.obj \ + $(TMPDIR)\dstring.obj
+smixlate.exe: $(SMIXLATEOBJS) $(SMILIB) + $(cc32) $(DEFINES) \ + /osmixlate.exe $(SMIXLATEOBJS) $(SMILIB) +