delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/20/14:00:02

From: janjaap AT Wit381304 DOT student DOT utwente DOT nl (Jan-Jaap van der Heijden)
Subject: Re: MS Platform SDK now available
20 Nov 1997 14:00:02 -0800 :
Message-ID: <Pine.LNX.3.96.971120001228.4517B-100000.cygnus.gnu-win32@zoo-station.student.utwente.nl>
References: <199711190453 DOT XAA17130 AT bw DOT webex DOT net>
Reply-To: Jan-Jaap van der Heijden <J DOT J DOT vanderHeijden AT student DOT utwente DOT nl>
Mime-Version: 1.0
To: GNU-Win32 list <gnu-win32 AT cygnus DOT com>

On Tue, 18 Nov 1997, Paul Garceau wrote:

> 	Anyone had the opportunity to attempt using the Platform SDK under 
> Gnu-Win32 (eg. mingw32)?  If so, are there any steps I need to take in 
> order to enable it for this NT 4.0 system?
> 

I've been playing with a mingw32 EGCS compiler and the MS Platform SDK.
It won't work out of the box. I added these switches to the "predefines"
section of GCC the GCC specs file:

  -D_STDCALL_SUPPORTED -D_M_IX86=1 -D_inline=__inline__
  -D_cdecl=__attribute__((__cdecl__)) -D__declspec(dllimport)=

You will have to remove, or rewrite some functions in inline assembly from
winnt.h, because they use intel syntax, not AT&T like GNU does.

It works as long as you supply -DWIN32_LEAN_AND_MEAN with CFLAGS, and
ignore a flood of GCC warnings. I only tested it on a few trivial
programs, though.

Happy hacking,

JanJaap

---
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.

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019