This is libpq and a sample application only for Windows CE. It achieves it by using the library 
of wcecompat and libpq of PostgreSQL. Then, Please note that it is GPL in the library of wcecompat. 
Of course, PostgreSQL are BSD licenses.

The procedure until build it is described as follows. There are two kinds of procedures when the library 
is constructed and when the application is made. When the application is build by using the library 
offered here, it is enough only in that environment.


Please get the build tools.
---

1.) Microsoft eMbedded Visual C++ 4.0.

http://www.microsoft.com/downloads/details.aspx?familyid=1DACDB3D-50D1-41B2-A107-FA75AE960856&displaylang=en

then,It is necessary to apply service pack 3.

http://www.microsoft.com/downloads/details.aspx?familyid=5BB36F3E-5B3D-419A-9610-2FE53815AE3B&displaylang=en

2.) Microsoft Standard Software Development Kit (SDK).

http://www.microsoft.com/downloads/details.aspx?familyid=A08F6991-16B0-4019-A174-0C40E6D25FE7&displaylang=en

3.) Get the wcecompat compatibility library.

http://www.essemer.com.au/windowsce/

Note: Licensed under the GNU LGPL

4.) Get the ActivePerl.

http://www.activestate.com/

5.) Get the OpenSSL

http://www.openssl.org/source/


How to build.
---

> cd C:\wcecompat

Setup the eMbedded Visual C++ environment.  There are batch files for doing this installed with eVC++.  
For an ARM processor, for example, execute:

> "C:\Program Files\Microsoft eMbedded Tools\EVC\WCE300\BIN\WCEARM.BAT"
> nmake -f makefile

WindowsCE support in OpenSSL relies on wcecompat.

> cd openssl-0.9.8e
> set WCECOMPAT=C:\wcecompat
> perl Configure VC-CE
> ms\do_ms
> nmake -f ms\cedll.mak


Build the libpq library.
---

Please apply patch first.

> cd postgresq-8.2.4
> patch -p1 < pgsql-8.2.4.patch

> cd src
> nmake -f wince.mak USE_SSL=1

libpqdll.lib, libpq.dll and psql.exe are made by this.
However, psql.exe is still being examined, enough operation is not done.


Build of your application.
---

Please refer to offered psqlce.vcp.

Note:
At this time, it is good only in the construction environment of libpq. 


***
Please enjoy.!



















