--
LIBFLASH:

--
COMPILING ON WINDOWS:

First, you must modify windef.h... Try compiling, and after failing... Double click on the top errors and keep going down until one of them opens a new tab called windef.h. Modify it as so...

BEFORE:

  typedef unsigned long DWORD;
  typedef int WINBOOL,*PWINBOOL,*LPWINBOOL;
  /* FIXME: Is there a good solution to this? */
  #ifndef XFree86Server
  #ifndef __OBJC__
> typedef WINBOOL BOOL;
  #else
  #define BOOL WINBOOL
  #endif

AFTER:

  typedef unsigned long DWORD;
  typedef int WINBOOL,*PWINBOOL,*LPWINBOOL;
  /* FIXME: Is there a good solution to this? */
  #ifndef XFree86Server
  #ifndef __OBJC__
> //typedef WINBOOL BOOL;
  #else
  #define BOOL WINBOOL
  #endif

basically, comment out the error. Now, you should have no errors but a message saying "Creating libflash.a". This means it worked, congrats.

--
INCLUDING IT WITH FP2X:

After making a build, there is no instant new version inserted into the files. We are statically linking libflash and several other libs, meaning that there is no involvement of seperate files, but we have to recompile to update.

Copy the libflash.a to winlibs if you built it for windows and libs if you built it for gp2x. In either case, it MUST be renamed to libflash_.a, meaning you may have to delete an older or included version.

Now, after doing both builds, your ready to complete what you began. open fp2x.dev again in devc++ for gp2x. Press build all (Right of build and run.)