delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/29/08:48:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Tue, 29 Oct 2002 08:49:37 -0500
From: Christopher Faylor <cygwin AT cygwin DOT com>
To: Alfred Lam <alfredlam AT nowmediatech DOT com>
Cc: cygwin AT cygwin DOT com
Subject: Re: cygwin gcc:undefined reference
Message-ID: <20021029134937.GB16855@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: Alfred Lam <alfredlam AT nowmediatech DOT com>,
cygwin AT cygwin DOT com
References: <005801c27f8a$e8d85020$080a0a0a AT mon>
Mime-Version: 1.0
In-Reply-To: <005801c27f8a$e8d85020$080a0a0a@mon>
User-Agent: Mutt/1.5.1i

Please check out the project web page for links to available information
and ports:  http://cygwin.com/ .  In particular, check out
http://cygwin.com/lists.html and http://cygwin.com/bugs.html .

If you don't see what you need there, then the cygwin mailing list is
the best place to make observations or get questions answered.
Information on the mailing list is available at the project web page.

For your convenience, I've reset the Reply-To: address to point to the
cygwin mailing list.  I've also Cc'ed this reply there.


On Tue, Oct 29, 2002 at 12:36:20PM -0800, Alfred Lam wrote:
>Hi Chris
>
>I've tried your suggestion on the cygwin gcc user library question =
>response from the mailing list of 28 aril 2000, however it's not =
>working.
>
>My windows pc is win98. The program is that of smart card where I use =
>ctapi library. I'm trying to produce a .so file so that it can be used =
>in a jni link which will be used in a java program. I have tried this on =
>my linux machine=20
>
>gcc main.o -L./ -lctapi -o main.so where ctapi is libctapi.a and I tried =
>the same in cygwin, but I always get undefined reference e.g
>$ g++ --shared main.o -L./ -lctapi -o main.so
>main.o(.text+0x4b):main.c: undefined reference to `CT_init'
>main.o(.text+0x8d):main.c: undefined reference to `CT_close'
>main.o(.text+0x127):main.c: undefined reference to `CT_data'
>main.o(.text+0x1eb):main.c: undefined reference to `CT_data'
>main.o(.text+0x34d):main.c: undefined reference to `CT_data'
>collect2: ld returned 1 exit status
>
>I have also tried using ctapi.lib instead of libctapi.a, but to no =
>avail. Did I go wrong somewhere?
>
>Rgds,
>Alfred
>
>

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

- Raw text -


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