X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:references:in-reply-to:subject:date
	:message-id:mime-version:content-type:content-transfer-encoding;
	 q=dns; s=default; b=gV8gK6bkAVn+JkuO7BDpU/G3m+FOQsFCsENn5gGtQKY
	AeqtbVlNbKn9/mYKYy3WRYjpUy5Ngc4Ik/ddPju2rzTNQClKZ9UeN/7K+5cj7ha1
	1VYSP+rvwk2B/uo/vG8nnVl2yJGxiWnCGmdzPpc6BEzeiNYmNwebwXgVVmzZcVb0
	=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:references:in-reply-to:subject:date
	:message-id:mime-version:content-type:content-transfer-encoding;
	 s=default; bh=//f4yusJMx08sfHTKy7HZV5ghck=; b=jwIjv5fuobdd5yARE
	uE1j+AygMttX+BP5NMA9R/Wd7n/5th0lEe/azhG6Zp/oKEjSiM7MGPm452g6Ja57
	klad8TLhYOu+2aG610zr6Pu/36KnbSNPJ758DOeJtGtJtMSfkwiEh0WWIy1T4cKM
	Y5y2yJMsOoq5iU1XAlaUQVIam0=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_50,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RDNS_NONE,SPF_HELO_PASS autolearn=no version=3.3.1
From: Pavel Fedin <p.fedin@samsung.com>
To: "'Andrew Schulman'" <schulman.andrew@epamail.epa.gov>, cygwin@cygwin.com
References: <000001ce7e08$2b866830$82933890$%fedin@samsung.com> <u4ett8due4p6h9ku1iumscvulp0g688tgk@4ax.com> <4q4ut8had25hqmo8b0752i8asuv6ism2qh@4ax.com> <002901ce7f0a$9da99420$d8fcbc60$%fedin@samsung.com> <tq50u89pa1s7us0cff5rnu8k5ocumac510@4ax.com> <002601ce82b7$63229580$2967c080$%fedin@samsung.com> <oksou81bta580gufa1d28k45c1ismdn2o3@4ax.com>
In-reply-to: <oksou81bta580gufa1d28k45c1ismdn2o3@4ax.com>
Subject: RE: [PATCH] Fix optional variables in libargp
Date: Mon, 22 Jul 2013 14:32:11 +0400
Message-id: <002a01ce86c6$ba32a190$2e97e4b0$%fedin@samsung.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit

 Hello!
 I have successfully tested it on i386. Really, just remove PREFIX
completely and it's okay. GetProcAddress() appears to be "clever" and adds
the leading underscope by itself on i386. I don't know what you did wrong
and why you could not reproduce the solution.
 However, i have one idea. After patching libargp you need to recompile your
test case. Because it needs to pick up __declspec(dllexport).

> Fedin, thanks for sending this.  I've tested it for x86_64, and it
> works there.  However in x86, in my testing I can't get it to work.  I
> tried removing the PREFIX function, and after that it did work once,
> but I've tried it again several times and now I can't reproduce that.

Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia



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

