GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #777

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Jan-Jaap van der Heijden
Subject: CygWin32 and BPCompat
Date: 9 Jun 1997, 12:09:21

On Mon, 9 Jun 1997, The African Chief wrote:

> Hi all,
> 
> I have just succeeded over the weekend to compile SYSTEM.PAS,
> STRINGS.PAS, AND OBJECTS.PAS with CygWin. This has required 
> some $IFDEFs and the addition of some new functions, just for CygWin -
> (so, AFAIK, the SYSTEM unit in BPCompat now compiles correctly under
> DJGPP, EMX, Linux, and CygWin - any other successes?)
> 
> One thing which I am missing is the Win32 API in Pascal. Has anyone
> translated any of the CygWin32 C headers (esp. any Win32 API calls) 
> to GPC? I would like to start a collection of these. Better still, is anyone
> willing to write a program that will parse a CygWin32 C headers and
> generate a GPC unit from it?


I have converted just enough headers to be able to compile a basic GUI
application, where you do all the message handling yourself (no object
windows available :-(

I did this for cygwin32 b16. Then I focussed more on the unix ascpects for
some time, but now I have a b18 GPC compiler, and I'm working on some
cygwin32 things (DLL's, building the RTS as a DLL etc.) I'm not sure that
function attibutes survive through the GPI mechanism (they didn't for
b16) so using units may not be possible. You need the
"__attribute__((stdcall))" feature to access win32 API functions.

Building DLL's on doze95 is difficult (not just for GPC) in b18.
NT seemed fine, but my NT machine crashed a HD this weekend :-(

> 
> PS:
> I have found that many things are different under CygWin from the rest
> (e.g., the "stat" structure;  the "errno", which is implemented as a macro); 
> and many things which are in standard C headers are missing  (e.g.,
> strlwr(), strupr(), stricmp, etc.). 
> 

cygwin32 is basically BSD.
I don't know about the unix (?) that cygwin32 differs from in your
opinion, but Linux for instance is a SYSV like unix.

Greetings,
JanJaap

> Best regards, The Chief 
> Dr Abimbola A. Olowofoyeku (The African Chief, and the Great Elephant)
> Author of:  Chief's Installer Pro v3.60 for Win16 and Win32.
> Homepage:  http://ourworld.compuserve.com/homepages/African_Chief/
> E-mail: laa12@cc.keele.ac.uk
> 
> 

---
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going
to land, and it could be dangerous sitting under them as they fly
overhead.  -- RFC1925.

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


In reply to

Author Subject Date
The Chief CygWin32 and BPCompat 9 Jun 1997, 10:36:46

Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).