Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3BDFC34C.2010707@sssup.it>
Date: Wed, 31 Oct 2001 10:24:28 +0100
From: Tommaso Cucinotta <cucinotta@sssup.it>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; it-IT; m18) Gecko/20010131
            Netscape6/6.01
X-Accept-Language: it
MIME-Version: 1.0
To: "Gerrit P. Haase" <cygwin@cygwin.com>
Subject: Re: linking with winscard.dll
References: <3BDEFF98.6010201@sssup.it>
            <4123654195.20011030210430@familiehaase.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi Mr. Gerrit,

I have to thank you for your quick response.

I followed your instructions, and got a libwinscard.a, but still I have 
the same problem. I get this:

   $ gcc -o test card_edge.o card_utils.o test.o -L. -lwinscard
   card_utils.o(.text+0x271):card_utils.c: undefined reference to 
`SCardTransmit@28'
   ...

That is almost the same of linking without the library, except that 
identifiers starting with _imp__g_rg
don't appear in the undefined reference list, using the library.

I get the same exact behaviour when I try to link directly against the 
VC++ ".lib" library:

   gcc -o test card_edge.o card_utils.o test.o -L/VC98/Lib -lWINSCARD

(Here in VC98/Lib there is a WINSCARD.LIB file).

Any further idea ?

Thank you again,

   bye,

       Tommaso.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

