Quote Originally Posted by JoeDonth
Paul,

I hope this question does not fall into the category of "Is he kidding!?", but I am having trouble compiling your gp2x_tutorial program from the command line into a WIN32 exe. It can't find the system unit.

Do I need to install a different version of the FPC or can I use the one that you provided?

What compiler command would you issue to compile the dpr program?

I'm issuing the following:
ppc -FiC:\GP2X\FPC\units\arm-linux\rtl C:\GP2X\Projects\gp2x_tutorial\gp2x_tutorial.dpr

Also, would it change if I was compiling a support unit like SDL.pas?

Thanks,
Joe
I normally use Lazarus (www.lazarus.freepascal.org) to compile the project for Win32, so I haven't had a problem.

I am not sure what the pcc.exe would be used for, but I don't think it is for creating Win32 programs (but don't quote me on this )

Have you managed to make Win32 programs using ppc.exe?

I am pretty sure that to compile a Win32 version of the project you either need a Win32 version of Lazarus or freepascal (or Delphi of course)...

When using Delphi, Lazarus or freepascal to compile a project, the 'support' units like sdl.pas should be compiled just fine...it is only when doing the cross-compile to GP2X using the batch file that this should be an issue.

cheers,
Paul.