
23 Sep
2002
23 Sep
'02
11:46 a.m.
Problem solved!
Since I got libsmi compiled in the IDE (Workbench, ... whatever) my testing code doesn't crash any more. I used a "static link library" project file and the following Defines (tx to Arthur):
WIN32,_DEBUG,_CONSOLE,_MBCS,__STDC__,_MT
I also added the following lines to win/win.h to get rid of all errors and warnings:
#include <stdio.h> #define strdup( s ) _strdup( s ) #define putenv( e ) _putenv( e ) #define access( f,m ) _access( f,m ) #define isatty( h ) _isatty( h )
util.c doesn't include win.h, so I added:
#ifdef HAVE_WIN_H #include "win.h" #endif
This is libsmi-0.4.0 on VC++ 6.0
Henning