[PythonCE] compiling for winCE

Michael Foord mike at pcblokes.com
Sat Sep 4 11:55:20 CEST 2004


This information on compiling for the pocketpc is very interesting - and the
first time I've seen it discussed properly in this group.

I've just started to learn C and to use compilers etc..... so hopefully I'll
starting hacking for the pocketpc in the near future...

Regards,

Fuzzy

http://www.voidspace.org.uk/atlantibots/pythonutils.html

----- Original Message -----
From: "Huy" <huymail at swiftdsl.com.au>
To: "Ajay" <abra9823 at mail.usyd.edu.au>
Cc: <pythonce at python.org>
Sent: Saturday, September 04, 2004 1:27 AM
Subject: Re: [PythonCE] compiling for winCE


> Ajay wrote:
> > hi!
> >
> > i have written a simple extension module in C and am trying to compile
it
> > for  the pocket pc.
> > the module code is pasted below
> > i am following the instructions in chapter4, section 4.1 step6 of
"Building
> > C and C++ Extensions on Windows".
> >
> > when i try building i get an error -
> > Compiling...
> > testDLL.c
> > ..\PC\WinCE/pyconfig.h(59) : fatal error C1083: Cannot open include
file:
> > 'io.h': No such file or directory
> > Error executing clarm.exe.
> >
> > testDLL.obj - 1 error(s), 0 warning(s)
> >
> > a dummy io.h is present in \PC\WinCE
> > so what am i doing wrong?
> >
> >
> > thanks
> >
> > cheers
> >
> >
> >
> >
> > #include <Python.h>
> >
> > static PyObject*
> > test_dll(PyObject *self, PyObject *args)
> > {
> > char *command;
> > int sts;
> >
> > if (!PyArg_ParseTuple(args, "s", &command))
> > return NULL;
> > sts = 5;
> > return Py_BuildValue("i", sts);
> > }
> >
> > static PyMethodDef MyDLLMethods[] = {
> > {"system", test_dll, METH_VARARGS, "test a dll."},
> > {NULL, NULL, 0, NULL}
> > };
> >
> > PyMODINIT_FUNC
> > initMyDLL(void)
> > {
> > (void) Py_InitModule("MyDLL", MyDLLMethods);
> > }
> >
>
> This compiled fine on my setup in EVC4 so it must be something in your
> setup. If you follow my previous email, you should have my exact setup.
>
> What compiler are you using ?
>
> HUy
> _______________________________________________
> PythonCE mailing list
> PythonCE at python.org
> http://mail.python.org/mailman/listinfo/pythonce
>
>



More information about the PythonCE mailing list