* Re: cygwin gcc:undefined reference
[not found] <005801c27f8a$e8d85020$080a0a0a@mon>
@ 2002-10-29 7:37 ` Christopher Faylor
2002-10-29 23:55 ` smarc card undefined reference Alfred Lam
2002-10-30 4:06 ` undefined reference continues Alfred Lam
0 siblings, 2 replies; 3+ messages in thread
From: Christopher Faylor @ 2002-10-29 7:37 UTC (permalink / raw)
To: Alfred Lam; +Cc: cygwin
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* smarc card undefined reference
2002-10-29 7:37 ` cygwin gcc:undefined reference Christopher Faylor
@ 2002-10-29 23:55 ` Alfred Lam
2002-10-30 4:06 ` undefined reference continues Alfred Lam
1 sibling, 0 replies; 3+ messages in thread
From: Alfred Lam @ 2002-10-29 23:55 UTC (permalink / raw)
To: cygwin
Hi all,
I have been trying for 3 days already and I'm getting the same frustrating
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
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
----- Original Message -----
From: Christopher Faylor <cygwin@cygwin.com>
To: Alfred Lam <alfredlam@nowmediatech.com>
Cc: <cygwin@cygwin.com>
Sent: Tuesday, October 29, 2002 5:49 AM
Subject: Re: cygwin gcc:undefined reference
>
> 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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* undefined reference continues
2002-10-29 7:37 ` cygwin gcc:undefined reference Christopher Faylor
2002-10-29 23:55 ` smarc card undefined reference Alfred Lam
@ 2002-10-30 4:06 ` Alfred Lam
1 sibling, 0 replies; 3+ messages in thread
From: Alfred Lam @ 2002-10-30 4:06 UTC (permalink / raw)
To: cygwin
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-10-30 10:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <005801c27f8a$e8d85020$080a0a0a@mon>
2002-10-29 7:37 ` cygwin gcc:undefined reference Christopher Faylor
2002-10-29 23:55 ` smarc card undefined reference Alfred Lam
2002-10-30 4:06 ` undefined reference continues Alfred Lam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).