delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/30/11:34:51

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
X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: undefined reference continues
Date: Wed, 30 Oct 2002 11:33:59 -0500
Message-ID: <BADF3C947A1BD54FBA75C70C241B0B9E10AB07@ex02.idirect.net>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Harig, Mark A." <maharig AT idirect DOT net>
To: "Alfred Lam" <alfredlam AT nowmediatech DOT com>, <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g9UGYoN02137

As requested at http://cygwin.com/bugs.html,
please include the output of 'cygcheck -s -v -r'
(as an attachment).  This will provide anyone
looking at your question with information
such as which version of Cygwin you are
running and which version of gcc you
have installed.

> -----Original Message-----
> From: Alfred Lam [mailto:alfredlam AT nowmediatech DOT com]
> Sent: Wednesday, October 30, 2002 9:59 PM
> To: cygwin AT cygwin DOT com
> Subject: undefined reference continues
> 
> 
> Hi all,
> 
> I have been trying for 4 days already and I'm getting the 
> same undefined
> reference to ....
> 
> I have tried the same command with the same program on Linux and it is
> working, but on cygwin, it's not.. Can anyone help me.. This 
> is what I did :
> 
> 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. I have also tried libtool but to no end
> 
> 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
> $ gcc 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, used main.c
> instead of main.o, put the library first, try to create 
> main.exe instead of
> main.so , but to no avail. Did I go wrong somewhere?
> Can someone help me please...
> 
> Thanks,
> 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/
> 
> 

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