delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/30/15:52:37

X-Spam-Check-By: sourceware.org
Message-ID: <460D7854.CBA2A042@dessent.net>
Date: Fri, 30 Mar 2007 13:51:32 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: Piotr Wyderski <piotr DOT wyderski AT wp DOT pl>
CC: cygwin AT cygwin DOT com, mingw-users AT lists DOT sourceforge DOT net
Subject: Re: [bug] Missing winapi symbols
References: <006f01c7730a$d7903d50$ed346957 AT voltan>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------4BCBBA69CECB944CB6D59EB8
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Piotr Wyderski wrote:

> The CreateMemoryResourceNotification() function
> is not defined in libkernel32.a. It is, however, defined
> in the win32api includes (with _WIN32_WINNT=0x0501),
> which it correct. I've checked both 3.8 and the latest 3.9
> versions of the win32api package and none of them exports
> the symbol. It stops the phase of linking of my program
> with an unrecoverable error.

The import libraries for the Win32 API (w32api) is actually maintained
by the MinGW project, and only distributed by Cygwin, so I've CC'd
them.  The attached patch ought to fix this.

Brian
--------------4BCBBA69CECB944CB6D59EB8
Content-Type: text/plain; charset=us-ascii;
 name="w32api-CreateMemoryResourceNotification.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="w32api-CreateMemoryResourceNotification.patch"

2007-03-30  Brian Dessent  <brian AT dessent DOT net>

	* lib/kernel32.def (CreateMemoryResourceNotification AT 4): Define.

Index: lib/kernel32.def
===================================================================
RCS file: /cvs/src/src/winsup/w32api/lib/kernel32.def,v
retrieving revision 1.24
diff -u -p -r1.24 kernel32.def
--- lib/kernel32.def	10 Aug 2006 21:06:01 -0000	1.24
+++ lib/kernel32.def	30 Mar 2007 20:48:06 -0000
@@ -79,6 +79,7 @@ CreateJobObjectA AT 8
 CreateJobObjectW AT 8
 CreateMailslotA AT 16
 CreateMailslotW AT 16
+CreateMemoryResourceNotification AT 4
 CreateMutexA AT 12
 CreateMutexW AT 12
 CreateNamedPipeA AT 32


--------------4BCBBA69CECB944CB6D59EB8
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--------------4BCBBA69CECB944CB6D59EB8--


- Raw text -


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