delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/26/12:54:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.2.0.14.0.20041126124455.03be1910@pop.prospeed.net>
Date: Fri, 26 Nov 2004 12:50:09 -0500
To: =?gb2312?q?=CF=F2=D1=F4=20=BA=AB?= <speer_han AT yahoo DOT com DOT cn>,
cygwin AT cygwin DOT com
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: Linking problem
In-Reply-To: <20041126071404.33661.qmail@web15804.mail.cnb.yahoo.com>
References: <20041126071404 DOT 33661 DOT qmail AT web15804 DOT mail DOT cnb DOT yahoo DOT com>
Mime-Version: 1.0

At 02:14 AM 11/26/2004, you wrote:
>Dear All,
>
>  I use RegisterDeviceNotification Win32 API in my
>program. While compiling under cygwin, linker reports
>that cannot find _RegisterDeviceNotification symbol.
>And I searched and found that
>RegisterDeviceNotification's text is contained in
>libuser32.a, but its symbol is appended @12, what's
>this?
>  Please help me, thanks!


Welcome to Windows.  This is not a Cygwin specific issue so you should 
consult further with a Windows list forum if you have further questions
on this issue.  For now, I'll point you to a couple of links on the MSDN
that should help you get a better understanding of what's going on:

<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_core_adjusting_naming_conventions.asp>

<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_core_adjusting_naming_conventions.asp>

If all else fails and you just need to get something working without any
understanding, you can try adding the 'ld' flag '--enable-stdcall-fixup'.
But really, you should read the above so you understand what you're missing
and what you need first.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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

- Raw text -


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