delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.4 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Andrew Schulman <schulman DOT andrew AT epamail DOT epa DOT gov> |
Subject: | Re: compilation fails with Win32 API call |
Date: | Tue, 20 Sep 2011 10:21:57 -0400 |
Lines: | 12 |
Message-ID: | <ka8h77l1dqlrgg9e22io9d49u5nuhommfu@4ax.com> |
References: | <bilg77dmpjm2d0bcu3tiqcl2i4cau04lqo AT 4ax DOT com> <j59p3e$kaf$1 AT dough DOT gmane DOT org> |
Mime-Version: | 1.0 |
X-Archive: | encrypt |
X-IsSubscribed: | yes |
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 |
> On 2011-09-20 PM 6:12, Andrew Schulman wrote: > > I'm trying to compile a program that calls the win32 function > > SetThreadExecutionState, in kernel32.dll [1]. The link step fails: > > please define WINVER so that you can get definition what you want > (gcc -E -DWINVER=0x500 - <<EOF > #include <windows.h> > EOF > )|grep SetThreadExecution Thanks jojelino, and JonY too. -DWINVER=0x500 did the trick. Andrew. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |