Возьми идешку для компилятора, например CodeBlock. После установки настрой компилятор по умолчанию на Борландовский. Создай проект win32 console wizard. Добавь все файлы h, c, cxx в проект и создай swig.
Я использовал для создания mingw из dev_cpp. Нормально сработало.
Есть одна вещь ещё. В каталоге sources\include есть файл swigconfig.h.in его нужно переименовать в swigconfig.h.
Потом я руками сделал несколько изменений, и вышел такой вариант:
/* Source/Include/swigconfig.h.in. Generated from configure.in by autoheader. */
/* Define to 1 if the system has the type `bool'. */
//#undef HAVE_BOOL
#define HAVE_BOOL 1
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the `dl' library (-ldl). */
#undef HAVE_LIBDL
/* Define to 1 if you have the `dld' library (-ldld). */
#undef HAVE_LIBDLD
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define if popen is available */
#undef HAVE_POPEN
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
#undef NO_MINUS_C_MINUS_O
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
//#undef PACKAGE_BUGREPORT
#define PACKAGE_BUGREPORT "
http://www.swig.org“
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the version of this package. */
//#undef PACKAGE_VERSION
#define PACKAGE_VERSION ”1.3.29“
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Compiler that built SWIG */
//#undef SWIG_CXX
#define SWIG_CXX ”CXX“
/* Directory for SWIG system-independent libraries */
//#undef SWIG_LIB
#define SWIG_LIB ”C:\\python_soft\\swigwin\Lib“
/* Platform that SWIG is built for */
//#undef SWIG_PLATFORM
#define SWIG_PLATFORM ”WIN2000“
/* Version number of package */
#undef VERSION
/* Default language */
#define SWIG_LANG ”-tcl"
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
#if defined(_MSC_VER)
# define _CRT_SECURE_NO_DEPRECATE
#endif