Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3BDFC34C.2010707@sssup.it> Date: Wed, 31 Oct 2001 10:24:28 +0100 From: Tommaso Cucinotta 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" Subject: Re: linking with winscard.dll References: <3BDEFF98 DOT 6010201 AT sssup DOT it> <4123654195 DOT 20011030210430 AT familiehaase DOT 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 AT 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/