Who know how use FB swig?
Who know how use FB swig?
Hwo know how use fb swig?
And were download it?
Im wont try parse directx november 2007 headers.
And were download it?
Im wont try parse directx november 2007 headers.
ok i'm download it? but i can not understand how convert *.H file to *.bi?Bunuel66 wrote:http://www.freebasic.net/temp/swig_fb.zip
what write into command line?
Be sure you are using C headers that are compatible with gcc/mingw and don't depend on some VC++/windows-only feature, SWIG will choke on that.
This is the .i file i used to translate the Win API (and DX9):
To not make SWIG go nuts, i uncommented each header/api at once, "fixing" anything that went wrong by removing the unsupported "C" features or just by commenting out the lines and translating them by hand later.
This is the .i file i used to translate the Win API (and DX9):
Code: Select all
%module win
#define __i486__ 1
#define _M_IX86 1
#define __GNUC__ 3
#define NONAMELESSUNION 1
#define __stdcall
#define __fastcall
#define __cdecl
#define __attribute__(a)
#define _HAVE_INT64
#define __int64 long long
#define WINAPI
#define APIENTRY
#define WIN32_LEAN_AND_MEAN 1
#define WIN32_WINNT 0x0700
#define _WIN32_WINNT WIN32_WINNT
#define WIN32_IE 0x0700
#define _WIN32_IE WIN32_IE
#define WIN32
#define _WIN32
#define WINVER 0x500
%include windows.h
#define DIRECTDRAW_VERSION 0x0700
#define DIRECTSOUND_VERSION 0x0900
#define DIRECTINPUT_VERSION 0x0800
/*#include ddraw.h
#include dsound.h
#include dinput.h
%include dxerr8.h
%include dxerr9.h*/
/*
#define DIRECT3D_VERSION 0x0900
%include d3d9.h
%include d3dx9.h*/
#define DIRECT3D_VERSION 0x0700
/*%include d3d.h
%include d3dx.h
%include d3drm.h
%include d3drmwin.h*/