public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Undefined References
@ 2004-03-03 20:52 pavan mandalkar
  0 siblings, 0 replies; 15+ messages in thread
From: pavan mandalkar @ 2004-03-03 20:52 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 4444 bytes --]

Hi,
                                                      
                                                      
                                               
  I am trying to build myown.dll on Cygwin 1.5.5 and
gcc 3.2. I get the following error,

*******************************************************
/cygdrive/c/cygwin/lib/libgcj.a(natIconv.o)(.text+0x66):
undefined 
reference to `_libiconv_open'
/cygdrive/c/cygwin/lib/libgcj.a(natIconv.o)(.text+0xe4):
undefined 
reference to `_libiconv_close'
/cygdrive/c/cygwin/lib/libgcj.a(natIconv.o)(.text+0x16c):
undefined 
reference to `_libiconv'
/cygdrive/c/cygwin/lib/libgcj.a(natIconv.o)(.text+0x25e):
undefined 
reference to `_libiconv'
/cygdrive/c/cygwin/lib/libgcj.a(natIconv.o)(.text+0x2d6):
undefined 
reference to `_libiconv_open'
/cygdrive/c/cygwin/lib/libgcj.a(natIconv.o)(.text+0x354):
undefined 
reference to `_libiconv_close'
/cygdrive/c/cygwin/lib/libgcj.a(natIconv.o)(.text+0x3f0):
undefined 
reference to `_libiconv'
/cygdrive/c/cygwin/lib/libgcj.a(natIconv.o)(.text+0x4ab):
undefined 
reference to `_libiconv_open'
/cygdrive/c/cygwin/lib/libgcj.a(natIconv.o)(.text+0x4fc):
undefined 
reference to `_libiconv'
/cygdrive/c/cygwin/lib/libgcj.a(natIconv.o)(.text+0x57e):
undefined 
reference to `_libiconv'
/cygdrive/c/cygwin/lib/libgcj.a(natInflater.o)(.text+0x4e):
undefined 
reference to `_inflateEnd'
/cygdrive/c/cygwin/lib/libgcj.a(natInflater.o)(.text+0x24c):
undefined 
reference to `_inflate'
/cygdrive/c/cygwin/lib/libgcj.a(natInflater.o)(.text+0x3fe):
undefined 
reference to `_inflateReset'
/cygdrive/c/cygwin/lib/libgcj.a(natInflater.o)(.text+0x485):
undefined 
reference to `_inflateSetDictionary'
/cygdrive/c/cygwin/lib/libgcj.a(natInflater.o)(.text+0x64c):
undefined 
reference to `_inflateInit2_'
/cygdrive/c/cygwin/lib/libgcc.a(w32-shared-ptr.o)(.text+0x60):
undefined 
reference to `_FindAtomA@4'
/cygdrive/c/cygwin/lib/libgcc.a(w32-shared-ptr.o)(.text+0x131):
undefined 
reference to `_AddAtomA@4'
/cygdrive/c/cygwin/lib/libgcc.a(w32-shared-ptr.o)(.text+0x18e):
undefined 
reference to `_GetAtomNameA@12'
/cygdrive/c/cygwin/lib/libcygwin.a(libcmain.o)(.text+0x1f):
undefined 
reference to `_GetModuleHandleA@4'
/cygdrive/c/cygwin/lib/libcygwin.a(libcmain.o)(.text+0x29):
undefined 
reference to `_GetCommandLineA@0'
/cygdrive/c/cygwin/lib/libcygwin.a(libcmain.o)(.text+0x57):
undefined 
reference to `_GetStartupInfoA@4'
/cygdrive/c/cygwin/lib/libcygwin.a(libcmain.o)(.text+0x7c):
undefined 
reference to `_WinMain@16'
/cygdrive/c/cygwin/lib/libcygwin.a(_cygwin_crt0_common.o)(.text+0xbd):

undefined reference to `_GetModuleHandleA@4'
*********************************************************


I read about this problem at,
http://sources.redhat.com/ml/cygwin/2002-08/msg01385.html
                                                      
                                                      
                                               
It is mentioned that the '-lkernel32' parameter has
been added and
checked into CVS (for the Makefile of gcc 3.2). Is
there something that
I am missing?
                                                      
                                                      
                                               
I *did not* take the source and build gcc 3.2 but I
directly selected it
to be installed in setup.exe (Cygwin setup.exe). The
other
options/versions selected are
                                                      
                                                      
                                               
Cygwin 1.5.5
ash 20031007-1
gcc 3.2-3
                                                      
                                                      
                                               
Rest of the components are latest.
(I also included -lkernel32 while building my dll,
hoping the unresolved
symbols would be roped in, but to no avail).
                                                      
                                                      
                                               
Thanks and Regards
Pavan U M.


__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: Undefined references
  2005-06-13 14:16 Undefined references Alireza Ghasemi
@ 2005-06-13 15:24 ` Dave Korn
  0 siblings, 0 replies; 15+ messages in thread
From: Dave Korn @ 2005-06-13 15:24 UTC (permalink / raw)
  To: cygwin

----Original Message----
>From: Alireza Ghasemi
>Sent: 13 June 2005 12:45

> Hello,
> When compiling libyahoo2 everything went OK.but when I tried to compile a
> program with it,I got a very very big list of undefined references like
> this 
>> 
> "
>
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libyahoo2.a(libyahoo2.o)(.tex
> t+0x
> 38): In function `yahoo_log_message':
> /cygdrive/d/Downloads/New/Desktop/libyahoo2-0.7.5/src/libyahoo2.c:112:
> undefined reference to `_g_vsnprintf'
>
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libyahoo2.a(libyahoo2.o)(.tex
>
t+0x4e):/cygdrive/d/Downloads/New/Desktop/libyahoo2-0.7.5/src/libyahoo2.c:11
> 4: undefined reference to `_ext_yahoo_log'
>
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libyahoo2.a(libyahoo2.o)(.tex
> t+0x68): In function `yahoo_connect':
> /cygdrive/d/Downloads/New/Desktop/libyahoo2-0.7.5/src/libyahoo2.c:119:
> undefined reference to `_ext_yahoo_connect'
> "
> It says thesame things for functions like _g_malloc and _g_realloc too.Any
> idea about solving this?


1)  Find out where the missing functions are supposed to be coming from.
2)  Find out whether they are actually there or not.
3)  If they are there, find out why the linker isn't finding them at link
time.
4)  If they aren't there, find out what went wrong earlier that resulted in
them not being there.



    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Undefined references
@ 2005-06-13 14:16 Alireza Ghasemi
  2005-06-13 15:24 ` Dave Korn
  0 siblings, 1 reply; 15+ messages in thread
From: Alireza Ghasemi @ 2005-06-13 14:16 UTC (permalink / raw)
  To: cygwin

Hello,
When compiling libyahoo2 everything went OK.but when I tried to compile a
program with it,I got a very very big list of undefined references like this
:
"
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libyahoo2.a(libyahoo2.o)(.tex
t+0x
38): In function `yahoo_log_message':
/cygdrive/d/Downloads/New/Desktop/libyahoo2-0.7.5/src/libyahoo2.c:112:
undefined reference to `_g_vsnprintf'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libyahoo2.a(libyahoo2.o)(.tex
t+0x4e):/cygdrive/d/Downloads/New/Desktop/libyahoo2-0.7.5/src/libyahoo2.c:11
4: undefined reference to `_ext_yahoo_log'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libyahoo2.a(libyahoo2.o)(.tex
t+0x68): In function `yahoo_connect':
/cygdrive/d/Downloads/New/Desktop/libyahoo2-0.7.5/src/libyahoo2.c:119:
undefined reference to `_ext_yahoo_connect'
"
It says thesame things for functions like _g_malloc and _g_realloc too.Any
idea about solving this?
Thanks.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: undefined references
  1999-12-02  2:53 undefined references TS
@ 1999-12-31 13:28 ` TS
  0 siblings, 0 replies; 15+ messages in thread
From: TS @ 1999-12-31 13:28 UTC (permalink / raw)
  To: John Huddleston; +Cc: cygwin

Now I've changed the original Informix files "sqlca.h" and "sqlhdr.h"
as I did with the copies I sent to you yesterday. And I changed the
"$(INF_INCL)" in the makefiles back to the Informix-directory
("INF_INCL = -I/usr2/users/informix/incl/esql" and "INF_INCL =
-I/usr/demo/informix/incl/esql"). 
As expected, the sqlca-message disappeared, but all the others 
(_iqcdcl, _iqcftch, _iqdbase, _iqdcopen, _iqlocate_cursor; all in the
file "sqlhdr.h") are still here.

Tom.

--- John Huddleston <jhudd@cody.itc.nrcs.usda.gov> schrieb:
> Tom,
> 
> Curious.   Well, I am still waiting for the NT Informix.  We are
> moving to a new building and our systems people have 
> their hands full with broken phones and broken LAN connectivity.
> Yech.
> 
> Will keep in touch though.
> 
> John
> 
> ----- Original Message ----- 
> From: TS <tom2all@yahoo.com>
> To: John Huddleston <jhudd@cody.itc.nrcs.usda.gov>
> Sent: Wednesday, December 01, 1999 8:54 AM
> Subject: Re: undefined references
> 
> 
> > You're right, if I delete this "extern", the "sqlca"-error
> disappeares.
> > But if I change this in a copy of the headerfiles, the changes
> don't
> > seem to work. It seems that esql always takes the original header
> > files.
> > 
> > I changed the path of the header files in the makefile, and deleted
> the
> > "extern" of the undefined references from "sqlca.h" and "sqlhdr.h".
> And
> > I changed the "#include<sqlhdr.h>" in the file "tomc.c" to
> > "#include"header/sqlca.h"". But the result was the same as before!
> I
> > don't know why, but I think, esql takes the original header files.
> > 
> > In the meantime I tried so extract the object files out of the libs
> and
> > compile them instead of the libs. But this didn't work. There were
> 4
> > undefined references that I haven't seen yet before.
> > 
> > Tom.
> > 
> > --- John Huddleston <jhudd@cody.itc.nrcs.usda.gov> schrieb:
> > > 
> > > Yes and no.   If you can afford it, do it.  It is a matter
> > > of the compiler.   When you look at the functions 
> > > declared in the sqlca.h file, they all begin with
> > > an underscore.  Yet, the calls that are missing in
> > > your sample want the function without the '_'
> > > 
> > > It is almost as if they were compiled from Fortran
> > > because the symptoms are the same.   I spent
> > > four hours on it yesterday (I like puzzles).
> > > 
> > > The work around is to write your functions that call
> > > the functions in your library.  A dirty job at best.
> > > For instance in the tom.c file (which you did not send
> > > me but I compiled using my Informix ESQL compiler)
> > > I took out the extern on the line 94 (attached)
> > > 
> > > struct sqlca_s sqlca;
> > > 
> > > and the error messages for sqlca went away.  Well,
> > > I haven't tried the Microsoft studio yet.  Also, my
> > > PC Informix hasn't arrived yet.  I'll let you know what
> > > I discover.  I also have an Informix port to do so that's
> > > why I spent so much time on it.
> > > 
> > > John
> > > 
> > > ----- Original Message ----- 
> > > From: TS <tom2all@yahoo.com>
> > > To: <jhudd@cody.itc.nrcs.usda.gov>
> > > Sent: Tuesday, November 30, 1999 1:01 AM
> > > Subject: Fwd: Re: undefined references
> > > 
> > > 
> > > > Thanks, John.
> > > > But I think, Larry knows an answer. I hope he's not
> > > > right, but I think he is. It seems as if I have to buy
> > > > Informix for Windows NT. What do you think?
> > > > 
> > > > Tom.
> > > > 
> > > > --- "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
> > > > schrieb:
> > > > > From Larry Hall (RFK Partners, Inc) Mon Nov 29
> > > > > 08:55:20 1999
> > > > > X-Apparently-To: tom2all@yahoo.com via
> > > > > web1406.mail.yahoo.com
> > > > > X-Track2: 2
> > > > > X-Track: 1: 40
> > > > > Received: from antiochus-fe0.ultra.net
> > > > > (146.115.8.188)
> > > > >   by mta112.mail.yahoo.com with SMTP; 29 Nov 1999
> > > > > 16:58:20 -0000
> > > > > Received: from mkt_lhall (news.solidworks.com
> > > > > [206.34.34.3]) by antiochus-fe0.ultra.net
> > > > > (8.8.8/ult/n20340/mtc.v2) with SMTP id LAA03592 for
> > > > > <tom2all@yahoo.com>; Mon, 29 Nov 1999 11:57:46 -0500
> > > > > (EST)
> > > > > Message-Id:
> > > > >
> > > > <3.0.5.32.19991129115520.00e417a0@pop.ma.ultranet.com>
> > > > > X-Sender: lhall@pop.ma.ultranet.com
> > > > > X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5
> > > > > (32)
> > > > > Datum: Mon, 29 Nov 1999 11:55:20 -0500
> > > > > An: TS <tom2all@yahoo.com>
> > > > > Von: "Larry Hall (RFK Partners, Inc)"
> > > > > <lhall@rfk.com>
> > > > > Betreff: Re: undefined references
> > > > > In-Reply-To:
> > > > >
> > > > <19991129164226.12979.rocketmail@web1403.mail.yahoo.com>
> > > > > Mime-Version: 1.0
> > > > > Content-Type: text/plain; charset="us-ascii"
> > > > > Content-Length: 3440
> > > > > 
> > > > > Right, because they are in UNIX format, for the
> > > > > platform on
> > > > > which you are using them.  They won't work on
> > > > > Cygwin, since
> > > > > Cygwin is on Windows and Windows is not UNIX (sorry
> > > > > for the 
> > > > > bulletin!;-))  If you want to successfully link on
> > > > > Windows
> > > > > using gcc and Cygwin, you need Windows versions of
> > > > > these
> > > > > libraries.  More than likely, the libraries will
> > > > > actually
> > > > > be DLLs, and they will come with what MS likes to
> > > > > call 
> > > > > "import" libraries (necessary to make their DLLs
> > > > > work).
> > > > > You won't want to use the import libraries with
> > > > > Cygwin (actually
> > > > > you can't!).  But if you have the DLLs, you can use
> > > > > dlltool 
> > > > > and dllwrap as described by Mumit Khan at his site
> > > > > (see the 
> > > > > pointer on the Cygwin page) or in the email archives
> > > > > (see the
> > > > > Cygwin site again) to create a compatible .a from
> > > > > the DLLs.
> > > > > You can then use the .a's you just created as the
> > > > > library you 
> > > > > need and want.  The symbols should resolve for you
> > > > > then.
> > > > > 
> > > > > Larry
> > > > > 
> > > > > 
> > > > > At 08:42 AM 11/29/99 -0800, you wrote:
> > > > > >I haven't changed anything. The libs are for
> > > > > Informix
> > > > > >for Unix. They have their original name. And the
> > > > > >Unix-cc has no problems with them.
> > > > > >
> > > > > >Tom.
> > > > > >
> > > > > >--- "Larry Hall (RFK Partners, Inc)"
> > > > > <lhall@rfk.com>
> > > > > >schrieb:
> > > > > >> If they come from Informix, my guess is that you
> > > > > >> actually
> > > > > >> have DLLs accompanied by import libraries
> > > > > necessary
> > > > > >> to support
> > > > > >> MS VC++.  Am I right?  You need to make .a files
> > > > > >> from the .dll
> > > > > >> files using dlltool and dllwrap.  Check Mumit
> > > > > Khan's
> > > > > >> site for
> > > > > >> instructions about how to do that.  I think your
> > > > > >> problem is that
> > > > > >> you're trying the rename the .lib files (or
> > > > > >> something else) to .a
> > > > > >> files, which won't work (unfortunately!;-))
> > > > > >> 
> > > > > >> Larry
> > > > > >> 
> > > > > >> 
> > > > > >> At 07:54 AM 11/29/99 -0800, you wrote:
> > > > > >> >My libraries are from Informix.I need them to
> > > > > >> compile
> > > > > >> >the ESQL/C-part of the source.
> > > > > >> >How can I see what format a library has?
> > > > > >> >Which format does Cygwin's gcc need?
> > > > > >> >How can I change the format? Is there a
> > > > > >> possibility?
> > > > > >> >
> > > > > >> >Thanks in advance,
> > > > > >> >
> > > > > >> >Tom.
> > > > > >> >
> > > > > >> >--- "Larry Hall (RFK Partners, Inc)"
> > > > > >> <lhall@rfk.com>
> > > > > >> >schrieb:
> > > > > >> >> At 01:54 AM 11/29/99 -0800, you wrote:
> > > > > >> >> <snip>
> > > > > >> >> 
> > > > > >> >> >What is the reason for this errors? Are the
> > > > > >> >> libraries
> > > > > >> >> >in a wrong format? What am I doing wrong? If
> > > > > >> >> someone
> > > > > >> >> >wants to help, I can mail the source files
> > > > > and
> > > > > >> the
> > > > > >> >> >libraries.
> > > > > >> >> >
> > > > > >> >> 
> > > > > >> >> My guess is the library format.  Where did you
> > > > > >> get
> > > > > >> >> them?
> > > > > >> >> I assume you are not just using the ones from
> > > > > SCO
> > > > > >> >> UNIX,
> > > > > >> >> right?  If you have versions that were created
> > > > > >> for
> > > > > >> >> Cygwin
> > > > > >> >> (by you are someone else), then libraries are
> > > > > not
> > > > > >> >> your 
> > > > > >> >> problem.  Otherwise, they are!;-)
> > > > > >> >> 
> > > > > >> >> 
> > > > > >> >> Larry Hall                             
> > > > > >> >> lhall@rfk.com
> > > > > >> >> RFK Partners, Inc.                     
> > > > > >> >> http://www.rfk.com
> > > > > >> >> 118 Washington Street                   (508)
> > > > > >> >> 893-9779 - RFK Office
> > > > > >> >> Holliston, MA 01746                     (508)
> > > > > >> >> 893-9889 - FAX
> > > > > >> >>                                         (508)
> > > > > >> >> 560-1285 - cell phone
> > > > > >> >> 
> > > > > >> >
> > > > > >>
> > > > > >__________________________________________________
> > > > > >> >Do You Yahoo!?
> > > > > >> >Thousands of Stores.  Millions of Products.  All
> > > > > in
> > > > > >> one place.
> > > > > >> >Yahoo! Shopping: http://shopping.yahoo.com
> > > > > >> >
> > > > > >> >
> > > > > >> 
> > > > > >
> > > > > >__________________________________________________
> > > > > >Do You Yahoo!?
> > > > > >Thousands of Stores.  Millions of Products.  All in
> > > > > one place.
> > > > > >Yahoo! Shopping: http://shopping.yahoo.com
> > > > > >
> > > > > >
> > > > > 
> > > > 
> > > > __________________________________________________
> > > > Do You Yahoo!?
> > > > Thousands of Stores.  Millions of Products.  All in one place.
> > > > Yahoo! Shopping: http://shopping.yahoo.com
> > > > 
> > > 
> > > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Thousands of Stores.  Millions of Products.  All in one place.
> > Yahoo! Shopping: http://shopping.yahoo.com
> 
> 

__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: undefined references
@ 1999-12-02  2:53 TS
  1999-12-31 13:28 ` TS
  0 siblings, 1 reply; 15+ messages in thread
From: TS @ 1999-12-02  2:53 UTC (permalink / raw)
  To: John Huddleston; +Cc: cygwin

Now I've changed the original Informix files "sqlca.h" and "sqlhdr.h"
as I did with the copies I sent to you yesterday. And I changed the
"$(INF_INCL)" in the makefiles back to the Informix-directory
("INF_INCL = -I/usr2/users/informix/incl/esql" and "INF_INCL =
-I/usr/demo/informix/incl/esql"). 
As expected, the sqlca-message disappeared, but all the others 
(_iqcdcl, _iqcftch, _iqdbase, _iqdcopen, _iqlocate_cursor; all in the
file "sqlhdr.h") are still here.

Tom.

--- John Huddleston <jhudd@cody.itc.nrcs.usda.gov> schrieb:
> Tom,
> 
> Curious.   Well, I am still waiting for the NT Informix.  We are
> moving to a new building and our systems people have 
> their hands full with broken phones and broken LAN connectivity.
> Yech.
> 
> Will keep in touch though.
> 
> John
> 
> ----- Original Message ----- 
> From: TS <tom2all@yahoo.com>
> To: John Huddleston <jhudd@cody.itc.nrcs.usda.gov>
> Sent: Wednesday, December 01, 1999 8:54 AM
> Subject: Re: undefined references
> 
> 
> > You're right, if I delete this "extern", the "sqlca"-error
> disappeares.
> > But if I change this in a copy of the headerfiles, the changes
> don't
> > seem to work. It seems that esql always takes the original header
> > files.
> > 
> > I changed the path of the header files in the makefile, and deleted
> the
> > "extern" of the undefined references from "sqlca.h" and "sqlhdr.h".
> And
> > I changed the "#include<sqlhdr.h>" in the file "tomc.c" to
> > "#include"header/sqlca.h"". But the result was the same as before!
> I
> > don't know why, but I think, esql takes the original header files.
> > 
> > In the meantime I tried so extract the object files out of the libs
> and
> > compile them instead of the libs. But this didn't work. There were
> 4
> > undefined references that I haven't seen yet before.
> > 
> > Tom.
> > 
> > --- John Huddleston <jhudd@cody.itc.nrcs.usda.gov> schrieb:
> > > 
> > > Yes and no.   If you can afford it, do it.  It is a matter
> > > of the compiler.   When you look at the functions 
> > > declared in the sqlca.h file, they all begin with
> > > an underscore.  Yet, the calls that are missing in
> > > your sample want the function without the '_'
> > > 
> > > It is almost as if they were compiled from Fortran
> > > because the symptoms are the same.   I spent
> > > four hours on it yesterday (I like puzzles).
> > > 
> > > The work around is to write your functions that call
> > > the functions in your library.  A dirty job at best.
> > > For instance in the tom.c file (which you did not send
> > > me but I compiled using my Informix ESQL compiler)
> > > I took out the extern on the line 94 (attached)
> > > 
> > > struct sqlca_s sqlca;
> > > 
> > > and the error messages for sqlca went away.  Well,
> > > I haven't tried the Microsoft studio yet.  Also, my
> > > PC Informix hasn't arrived yet.  I'll let you know what
> > > I discover.  I also have an Informix port to do so that's
> > > why I spent so much time on it.
> > > 
> > > John
> > > 
> > > ----- Original Message ----- 
> > > From: TS <tom2all@yahoo.com>
> > > To: <jhudd@cody.itc.nrcs.usda.gov>
> > > Sent: Tuesday, November 30, 1999 1:01 AM
> > > Subject: Fwd: Re: undefined references
> > > 
> > > 
> > > > Thanks, John.
> > > > But I think, Larry knows an answer. I hope he's not
> > > > right, but I think he is. It seems as if I have to buy
> > > > Informix for Windows NT. What do you think?
> > > > 
> > > > Tom.
> > > > 
> > > > --- "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
> > > > schrieb:
> > > > > From Larry Hall (RFK Partners, Inc) Mon Nov 29
> > > > > 08:55:20 1999
> > > > > X-Apparently-To: tom2all@yahoo.com via
> > > > > web1406.mail.yahoo.com
> > > > > X-Track2: 2
> > > > > X-Track: 1: 40
> > > > > Received: from antiochus-fe0.ultra.net
> > > > > (146.115.8.188)
> > > > >   by mta112.mail.yahoo.com with SMTP; 29 Nov 1999
> > > > > 16:58:20 -0000
> > > > > Received: from mkt_lhall (news.solidworks.com
> > > > > [206.34.34.3]) by antiochus-fe0.ultra.net
> > > > > (8.8.8/ult/n20340/mtc.v2) with SMTP id LAA03592 for
> > > > > <tom2all@yahoo.com>; Mon, 29 Nov 1999 11:57:46 -0500
> > > > > (EST)
> > > > > Message-Id:
> > > > >
> > > > <3.0.5.32.19991129115520.00e417a0@pop.ma.ultranet.com>
> > > > > X-Sender: lhall@pop.ma.ultranet.com
> > > > > X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5
> > > > > (32)
> > > > > Datum: Mon, 29 Nov 1999 11:55:20 -0500
> > > > > An: TS <tom2all@yahoo.com>
> > > > > Von: "Larry Hall (RFK Partners, Inc)"
> > > > > <lhall@rfk.com>
> > > > > Betreff: Re: undefined references
> > > > > In-Reply-To:
> > > > >
> > > > <19991129164226.12979.rocketmail@web1403.mail.yahoo.com>
> > > > > Mime-Version: 1.0
> > > > > Content-Type: text/plain; charset="us-ascii"
> > > > > Content-Length: 3440
> > > > > 
> > > > > Right, because they are in UNIX format, for the
> > > > > platform on
> > > > > which you are using them.  They won't work on
> > > > > Cygwin, since
> > > > > Cygwin is on Windows and Windows is not UNIX (sorry
> > > > > for the 
> > > > > bulletin!;-))  If you want to successfully link on
> > > > > Windows
> > > > > using gcc and Cygwin, you need Windows versions of
> > > > > these
> > > > > libraries.  More than likely, the libraries will
> > > > > actually
> > > > > be DLLs, and they will come with what MS likes to
> > > > > call 
> > > > > "import" libraries (necessary to make their DLLs
> > > > > work).
> > > > > You won't want to use the import libraries with
> > > > > Cygwin (actually
> > > > > you can't!).  But if you have the DLLs, you can use
> > > > > dlltool 
> > > > > and dllwrap as described by Mumit Khan at his site
> > > > > (see the 
> > > > > pointer on the Cygwin page) or in the email archives
> > > > > (see the
> > > > > Cygwin site again) to create a compatible .a from
> > > > > the DLLs.
> > > > > You can then use the .a's you just created as the
> > > > > library you 
> > > > > need and want.  The symbols should resolve for you
> > > > > then.
> > > > > 
> > > > > Larry
> > > > > 
> > > > > 
> > > > > At 08:42 AM 11/29/99 -0800, you wrote:
> > > > > >I haven't changed anything. The libs are for
> > > > > Informix
> > > > > >for Unix. They have their original name. And the
> > > > > >Unix-cc has no problems with them.
> > > > > >
> > > > > >Tom.
> > > > > >
> > > > > >--- "Larry Hall (RFK Partners, Inc)"
> > > > > <lhall@rfk.com>
> > > > > >schrieb:
> > > > > >> If they come from Informix, my guess is that you
> > > > > >> actually
> > > > > >> have DLLs accompanied by import libraries
> > > > > necessary
> > > > > >> to support
> > > > > >> MS VC++.  Am I right?  You need to make .a files
> > > > > >> from the .dll
> > > > > >> files using dlltool and dllwrap.  Check Mumit
> > > > > Khan's
> > > > > >> site for
> > > > > >> instructions about how to do that.  I think your
> > > > > >> problem is that
> > > > > >> you're trying the rename the .lib files (or
> > > > > >> something else) to .a
> > > > > >> files, which won't work (unfortunately!;-))
> > > > > >> 
> > > > > >> Larry
> > > > > >> 
> > > > > >> 
> > > > > >> At 07:54 AM 11/29/99 -0800, you wrote:
> > > > > >> >My libraries are from Informix.I need them to
> > > > > >> compile
> > > > > >> >the ESQL/C-part of the source.
> > > > > >> >How can I see what format a library has?
> > > > > >> >Which format does Cygwin's gcc need?
> > > > > >> >How can I change the format? Is there a
> > > > > >> possibility?
> > > > > >> >
> > > > > >> >Thanks in advance,
> > > > > >> >
> > > > > >> >Tom.
> > > > > >> >
> > > > > >> >--- "Larry Hall (RFK Partners, Inc)"
> > > > > >> <lhall@rfk.com>
> > > > > >> >schrieb:
> > > > > >> >> At 01:54 AM 11/29/99 -0800, you wrote:
> > > > > >> >> <snip>
> > > > > >> >> 
> > > > > >> >> >What is the reason for this errors? Are the
> > > > > >> >> libraries
> > > > > >> >> >in a wrong format? What am I doing wrong? If
> > > > > >> >> someone
> > > > > >> >> >wants to help, I can mail the source files
> > > > > and
> > > > > >> the
> > > > > >> >> >libraries.
> > > > > >> >> >
> > > > > >> >> 
> > > > > >> >> My guess is the library format.  Where did you
> > > > > >> get
> > > > > >> >> them?
> > > > > >> >> I assume you are not just using the ones from
> > > > > SCO
> > > > > >> >> UNIX,
> > > > > >> >> right?  If you have versions that were created
> > > > > >> for
> > > > > >> >> Cygwin
> > > > > >> >> (by you are someone else), then libraries are
> > > > > not
> > > > > >> >> your 
> > > > > >> >> problem.  Otherwise, they are!;-)
> > > > > >> >> 
> > > > > >> >> 
> > > > > >> >> Larry Hall                             
> > > > > >> >> lhall@rfk.com
> > > > > >> >> RFK Partners, Inc.                     
> > > > > >> >> http://www.rfk.com
> > > > > >> >> 118 Washington Street                   (508)
> > > > > >> >> 893-9779 - RFK Office
> > > > > >> >> Holliston, MA 01746                     (508)
> > > > > >> >> 893-9889 - FAX
> > > > > >> >>                                         (508)
> > > > > >> >> 560-1285 - cell phone
> > > > > >> >> 
> > > > > >> >
> > > > > >>
> > > > > >__________________________________________________
> > > > > >> >Do You Yahoo!?
> > > > > >> >Thousands of Stores.  Millions of Products.  All
> > > > > in
> > > > > >> one place.
> > > > > >> >Yahoo! Shopping: http://shopping.yahoo.com
> > > > > >> >
> > > > > >> >
> > > > > >> 
> > > > > >
> > > > > >__________________________________________________
> > > > > >Do You Yahoo!?
> > > > > >Thousands of Stores.  Millions of Products.  All in
> > > > > one place.
> > > > > >Yahoo! Shopping: http://shopping.yahoo.com
> > > > > >
> > > > > >
> > > > > 
> > > > 
> > > > __________________________________________________
> > > > Do You Yahoo!?
> > > > Thousands of Stores.  Millions of Products.  All in one place.
> > > > Yahoo! Shopping: http://shopping.yahoo.com
> > > > 
> > > 
> > > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Thousands of Stores.  Millions of Products.  All in one place.
> > Yahoo! Shopping: http://shopping.yahoo.com
> 
> 

__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: undefined references
  1999-11-29 16:59 ` Jan Theodore Galkowski
@ 1999-11-30 23:39   ` Jan Theodore Galkowski
  0 siblings, 0 replies; 15+ messages in thread
From: Jan Theodore Galkowski @ 1999-11-30 23:39 UTC (permalink / raw)
  To: TS; +Cc: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 16173 bytes --]

At 01:54 AM 11/29/99 -0800, TS wrote:
>I have to compile ESQL/C-Source with Cygwin. I have a
>preprocessor that makes c-source out of my
>ESQL/C-source. To compile this resulting c-source with
>a standard unix compiler, I have to use some special
>libraries. If I do this with SCO-Unix 5, the resulting
>program works fine. If I use Cygwin, the result is:
>
>   bash-2.02:[/usr/Demo/usr2/cygwin/tom_ec]$ make -f
>tom_demo.mak
>   
>   gcc -c -DBARTELT -DOAK_SCOUNIX
>-I/usr/demo/informix/incl/esql tomc.c
>   gcc tomc.o -o tomc.exe libs/libsql.a libs/libos.a
>libs/libasf.a libs/libgen.a libs/libos.a libs/libgen.a
>libs/libnsl_s.a libs/libcrypt_i.a libs/libsocket.a
>libs/libm.a
>   tomc.o(.text+0xb4):tomc.c: undefined reference to
>`sqlca'
>   tomc.o(.text+0xce):tomc.c: undefined reference to
>`_iqdbase'
>   tomc.o(.text+0xd6):tomc.c: undefined reference to
>`sqlca'
>   tomc.o(.text+0x102):tomc.c: undefined reference to
>`_iqlocate_cursor'
>   tomc.o(.text+0x10d):tomc.c: undefined reference to
>`_iqcdcl'
>   tomc.o(.text+0x115):tomc.c: undefined reference to
>`sqlca'
>   tomc.o(.text+0x13a):tomc.c: undefined reference to
>`_iqlocate_cursor'
>   tomc.o(.text+0x145):tomc.c: undefined reference to
>`_iqdcopen'
>   tomc.o(.text+0x14d):tomc.c: undefined reference to
>`sqlca'
>   tomc.o(.text+0x17f):tomc.c: undefined reference to
>`_iqlocate_cursor'
>   tomc.o(.text+0x18a):tomc.c: undefined reference to
>`_iqcftch'
>   tomc.o(.text+0x192):tomc.c: undefined reference to
>`sqlca'
>   collect2: ld returned 1 exit status
>   make: *** [tomc.exe] Error 1
>   
>   bash-2.02:[/usr/Demo/usr2/cygwin/tom_ec]$
>
>
>My makefile looks like this and is used for both unix
>and cygwin:
>
># Makefile fuer TOMC.EC
>
>KUNDE = BARTELT
>DL_OAK = OAK_SCOUNIX
>INF_INCL = -I/usr/demo/informix/incl/esql
>LIBS = libs/libsql.a libs/libos.a libs/libasf.a
>libs/libgen.a libs/libos.a libs/libgen.a
>libs/libnsl_s.a libs/libcrypt_i.a libs/libsocket.a
>libs/libm.a
>CFLAGS = -D$(KUNDE) -D$(DL_OAK) $(INF_INCL)
>
>tomc.exe: tomc.o
>	    gcc tomc.o -o tomc.exe $(LIBS)
>
>tomc.o: tomc.c
>	    gcc -c $(CFLAGS) tomc.c
>
>#Ende Makefile
>
>
>What is the reason for this errors? Are the libraries
>in a wrong format? What am I doing wrong? If someone
>wants to help, I can mail the source files and the
>libraries.
>
>I'm using Windows NT 4 SP 5
>          SCO Unix Open Server 5
>          Cygwin b20.1 with dll from 15.01.1999  

What's your database?  Since it's not in the
list and the errors all appear to be database
related, it appears that you failed to mention
the appropriate database libraries or archives
for your program to link with.

  --jt

>
>Here's my "cygcheck -s -v -r":
>
>
>Cygnus Win95/NT Configuration Diagnostics
>Current System Time: Mon Nov 29 10:45:55 1999
>
>WinNT Ver 4.0 build 1381 Service Pack 5
>
>Path:	/bin
>	/WINNT/system32
>	/WINNT
>	.
>
>SysDir: C:\WINNT\System32
>WinDir: C:\WINNT
>
>CYGWIN32 = `tty'
>HOME = `/usr/Labor2/usr2/home/thomas/eigene
>dateien/cygwin/examples'
>MAKE_MODE = `UNIX'
>PWD = `/usr/Labor2/usr2/home/thomas/eigene
>dateien/cygwin/examples'
>
>!C: = `C:\'
>ALARMDEV = `'
>BS = `SCO'
>CLASSPATH =
>`.;C:\VisualCafe\JAVA\LIB;C:\VisualCafe\JAVA\LIB\SYMCLASS.ZIP;C:\VisualCafe
\JAVA\LIB\CLASSES.ZIP;C:\VisualCafe\JFC\SWINGALL.JAR;C:\VisualCafe\BIN\COMPO
NENTS\SFC.JAR;C:\VisualCafe\BIN\COMPONENTS\SYMBEANS.JAR;C:\VisualCafe\JAVA\L
IB\DBAW.ZIP;C:\VisualCafe\BIN\COMPONENTS\DBAW_AWT.JAR;C:\VisualCafe\BIN\COMP
ONENTS\Databind.JAR;C:\VisualCafe\JAVA\LIB\Collections.zip;C:\VisualCafe\JAV
A\LIB\icebrowserbean.jar;C:\VisualCafe\JAVA\LIB\jsdk.jar;C:\VisualCafe\JAVA\
LIB\SYMTOOLS.JAR;C:\VisualCafe\JAVA\LIB\Olite35.JAR'
>CLIENT_LOCALE = `german_germany.8859'
>COLLCHAR = `0'
>COMPUTERNAME = `PC_SCHOBER'
>COMSPEC = `C:\WINNT\system32\cmd.exe'
>CSCAPEDIR = `/usr/Demo/usr2/users/lab/cscape'
>D =
>`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/dl'
>DATABASE = `labor'
>DBDATE = `DMY4/'
>DBLANG = `2'
>DB_LOCALE = `german_germany.8859'
>DL =
>`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/dl'
>DL_OAK = `OAK_SCOUNIX'
>DL_UTIL =
>`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/dl/util'
>ENGINE = `ONLINE'
>EXINIT = `set noai number showmode tabstop=4
>timeout=300'
>HOMEDRIVE = `C:'
>HOMEPATH = `\'
>HOSTNAME = `pc_schober'
>HOSTTYPE = `i586'
>I =
>`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/io'
>INFORMIXDIR = `/usr/demo/informix'
>INFORMIXSERVER = `demo'
>IO =
>`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/io'
>IO_UTIL =
>`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/io/util'
>KUNDE = `BARTELT'
>L2USR2 = `/usr/Labor2/usr2'
>LANG = `german_germany.8859'
>LC_COLLATE = `german_germany.8859'
>LOGONSERVER = `\\BAG-HANDEL'
>MACHTYPE = `i586-pc-cygwin32'
>NTSOURCE =
>`/usr/Labor2/usr2/projekt/dlio/nt/develop/source'
>NUMBER_OF_PROCESSORS = `1'
>OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
>OS = `Windows_NT'
>OSTYPE = `cygwin32'
>PATHEXT = `.COM;.EXE;.BAT;.CMD'
>PROCESSOR_ARCHITECTURE = `x86'
>PROCESSOR_IDENTIFIER = `x86 Family 6 Model 7 Stepping
>3, GenuineIntel'
>PROCESSOR_LEVEL = `6'
>PROCESSOR_REVISION = `0703'
>PROMPT = `$P$G'
>PS1 = `\s-\v:[$PWD]\$ '
>PS2 = `> '
>PS3 = `#? '
>PS4 = `+ '
>PSPAR = `-ef'
>ROOTDIR = `C:/MKSDemo'
>SERVER_LOCALE = `german_germany.8859'
>SHELL = `C:/MKSDemo/mksnt/sh.exe'
>SHLVL = `1'
>SYSTEMDRIVE = `C:'
>SYSTEMROOT = `C:\WINNT'
>TEMP = `C:\TEMP'
>TERM = `cygwin'
>TMP = `C:\TEMP'
>TMPDIR = `C:/TEMP'
>USERDOMAIN = `HANDEL'
>USERNAME = `schober'
>USERPROFILE = `C:\WINNT\Profiles\schober'
>USR2 = `/usr/Labor1/usr2'
>USR3 = `/usr/Labor1/usr3'
>USR4 = `/usr/Labor1/usr4'
>USR5 = `/usr/Labor1/usr5'
>WINDIR = `C:\WINNT'
>_ =
>`/Programme/cygwin/cygwin-b20/H-i586-cygwin32/bin/cygcheck'
>
>HKEY_CURRENT_USER\Software\Cygnus Solutions
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\00
>  (default) = `f:\datalab\source'
>  unix = `usr/Demo/dummysql'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\01
>  (default) = `f:\users\informix'
>  unix = `/usr/demo/informix'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\02
>  (default) = `u:'
>  unix = `/usr/Labor2/usr2'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\03
>  (default) = `q:'
>  unix = `/usr/Labor1/usr5'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\04
>  (default) = `p:'
>  unix = `/usr/Labor1/usr4'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\05
>  (default) = `o:'
>  unix = `/usr/Labor1/usr3'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\06
>  (default) = `n:'
>  unix = `/usr/Labor1/usr2'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\07
>  (default) = `c:\WINNT\Profiles\schober\Eigene
>Dateien\Cygwin\Examples'
>  unix = `/usr/Examples'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\08
>  (default) = `f:'
>  unix = `/usr/Demo/usr2'
>  fbinary = 0x00000001
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\09
>  (default) = `f:\datalab\source'
>  unix = `/usr/Demo/dummysql'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0A
>  (default) = `c:\Programme\cygwin\cygwin-b20\etc'
>  unix = `/etc'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0B
>  (default) =
>`c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin'
>  unix = `/bin'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0C
>  (default) = `C:'
>  unix = `/'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOr
der\Start
>Menu\&Programs\Cygnus Solutions
>  (default) = (unsupported type)
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
>B20
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
>B20\B20.1
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\00
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\01
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\02
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\03
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\04
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\05
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\06
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\07
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\08
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\09
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\0A
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\0B
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\0C
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\0D
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\0E
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\0F
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\10
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\11
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\12
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\13
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\14
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\15
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\16
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\17
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\18
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\19
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\1A
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\1B
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\1C
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\1D
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\GNUPro\i586-cygwin32
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\GNUPro\i586-cygwin32\i586-cygwin32
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\GNUPro\i586-cygwin32\i586-cygwin32\cygwin-B20.1
>  (default) = `c:\programme\cygwin\cygwin-b20'
>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Cygnus
>Cygwin B20
>  (default) = `C:\WINNT\IsUninst.exe
>-fc:\programme\cygwin\cygwin-b20\Uninst.isu'
>  DisplayName = `Cygwin B20'
>
>a:\ fd           N/A    N/A                    
>c:\ hd  NTFS    4031Mb  38% CP CS UN PA FC     
>d:\ hd  NTFS    4024Mb   1% CP CS UN PA FC     
>e:\ cd           N/A    N/A                    
>f:\ net NTFS    1562Mb  98%          PA        usr2
>m:\ net NTFS     996Mb  88% CP CS UN PA FC     Disks
>n:\ net Samba    292Mb  58% CP    UN           usr2
>o:\ net Samba    395Mb  90% CP    UN           usr3
>p:\ net Samba    341Mb  95% CP    UN           usr4
>q:\ net Samba    341Mb  64% CP    UN           usr5
>r:\ net NTFS     976Mb 100%          PA       
>usr3disks
>s:\ net NTFS     976Mb 100%          PA       
>usr3share
>u:\ net NTFS    6092Mb  70% CP CS UN PA FC     usr2
>
>C:                                                    
>   /                   native  text!=binary
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin    
>   /bin                native  text!=binary
>c:\Programme\cygwin\cygwin-b20\etc                    
>   /etc                native  text!=binary
>f:\datalab\source                                     
>   /usr/Demo/dummysql  native  text!=binary
>f:                                                    
>   /usr/Demo/usr2      native  text=binary
>c:\WINNT\Profiles\schober\Eigene
>Dateien\Cygwin\Examples  /usr/Examples       native 
>text!=binary
>n:                                                    
>   /usr/Labor1/usr2    native  text!=binary
>o:                                                    
>   /usr/Labor1/usr3    native  text!=binary
>p:                                                    
>   /usr/Labor1/usr4    native  text!=binary
>q:                                                    
>   /usr/Labor1/usr5    native  text!=binary
>u:                                                    
>   /usr/Labor2/usr2    native  text!=binary
>f:\users\informix                                     
>   /usr/demo/informix  native  text!=binary
>f:\datalab\source                                     
>   usr/Demo/dummysql   native  text!=binary
>
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\bash.exe
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cat.exe
>Not Found: cpp (good!)
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\find.exe
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\gcc.exe
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\gdb.exe
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\ld.exe
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\ls.exe
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\make.exe
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\sh.exe
>
>  371k 1998/12/01
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtcl80.dll
>- os=4.0 img=1.0 sys=4.0
>                  "cygtcl80.dll" v0.0 ts=1998/12/1
>9:25
>    5k 1998/12/01
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtclpip80.dll
>- os=4.0 img=1.0 sys=4.0
>   10k 1998/12/01
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtclreg80.dll
>- os=4.0 img=1.0 sys=4.0
>                  "cygtclreg80.dll" v0.0 ts=1998/12/1
>9:25
>  600k 1998/12/01
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtk80.dll
>- os=4.0 img=1.0 sys=4.0
>                  "cygtk80.dll" v0.0 ts=1998/12/1 9:28
>  451k 1999/09/28
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygwin1.dll
>- os=4.0 img=1.0 sys=4.0
>                  "cygwin1.dll" v0.0 ts=1999/1/16 6:09
>  446k 1998/12/03
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygwin1.original.dll
>- os=4.0 img=1.0 sys=4.0
>                  "cygwin1.dll" v0.0 ts=1998/12/4 5:39
>Use -h to see help about each section
>
>__________________________________________________
>Do You Yahoo!?
>Thousands of Stores.  Millions of Products.  All in one place.
>Yahoo! Shopping: http://shopping.yahoo.com
>
>--
>Want to unsubscribe from this list?
>Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>
>
______________________________________________________________________
 Jan Theodore Galkowski   °o°   (:-)}        demiourgos@smalltalk.org 
 www.smalltalk.org/                                       squeak.org/        
 www.ascent.com/books/stback.html            jtgalkowski@alum.mit.edu      
 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: undefined references
  1999-11-29  7:54 TS
@ 1999-11-30 23:39 ` TS
  0 siblings, 0 replies; 15+ messages in thread
From: TS @ 1999-11-30 23:39 UTC (permalink / raw)
  To: Larry Hall (RFK Partners, Inc); +Cc: cygwin

My libraries are from Informix.I need them to compile
the ESQL/C-part of the source.
How can I see what format a library has?
Which format does Cygwin's gcc need?
How can I change the format? Is there a possibility?

Thanks in advance,

Tom.

--- "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
schrieb:
> At 01:54 AM 11/29/99 -0800, you wrote:
> <snip>
> 
> >What is the reason for this errors? Are the
> libraries
> >in a wrong format? What am I doing wrong? If
> someone
> >wants to help, I can mail the source files and the
> >libraries.
> >
> 
> My guess is the library format.  Where did you get
> them?
> I assume you are not just using the ones from SCO
> UNIX,
> right?  If you have versions that were created for
> Cygwin
> (by you are someone else), then libraries are not
> your 
> problem.  Otherwise, they are!;-)
> 
> 
> Larry Hall                             
> lhall@rfk.com
> RFK Partners, Inc.                     
> http://www.rfk.com
> 118 Washington Street                   (508)
> 893-9779 - RFK Office
> Holliston, MA 01746                     (508)
> 893-9889 - FAX
>                                         (508)
> 560-1285 - cell phone
> 

__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 15+ messages in thread

* undefined references
  1999-11-29  1:54 TS
  1999-11-29 16:59 ` Jan Theodore Galkowski
@ 1999-11-30 23:39 ` TS
  1 sibling, 0 replies; 15+ messages in thread
From: TS @ 1999-11-30 23:39 UTC (permalink / raw)
  To: cygwin

I have to compile ESQL/C-Source with Cygwin. I have a
preprocessor that makes c-source out of my
ESQL/C-source. To compile this resulting c-source with
a standard unix compiler, I have to use some special
libraries. If I do this with SCO-Unix 5, the resulting
program works fine. If I use Cygwin, the result is:

   bash-2.02:[/usr/Demo/usr2/cygwin/tom_ec]$ make -f
tom_demo.mak
   
   gcc -c -DBARTELT -DOAK_SCOUNIX
-I/usr/demo/informix/incl/esql tomc.c
   gcc tomc.o -o tomc.exe libs/libsql.a libs/libos.a
libs/libasf.a libs/libgen.a libs/libos.a libs/libgen.a
libs/libnsl_s.a libs/libcrypt_i.a libs/libsocket.a
libs/libm.a
   tomc.o(.text+0xb4):tomc.c: undefined reference to
`sqlca'
   tomc.o(.text+0xce):tomc.c: undefined reference to
`_iqdbase'
   tomc.o(.text+0xd6):tomc.c: undefined reference to
`sqlca'
   tomc.o(.text+0x102):tomc.c: undefined reference to
`_iqlocate_cursor'
   tomc.o(.text+0x10d):tomc.c: undefined reference to
`_iqcdcl'
   tomc.o(.text+0x115):tomc.c: undefined reference to
`sqlca'
   tomc.o(.text+0x13a):tomc.c: undefined reference to
`_iqlocate_cursor'
   tomc.o(.text+0x145):tomc.c: undefined reference to
`_iqdcopen'
   tomc.o(.text+0x14d):tomc.c: undefined reference to
`sqlca'
   tomc.o(.text+0x17f):tomc.c: undefined reference to
`_iqlocate_cursor'
   tomc.o(.text+0x18a):tomc.c: undefined reference to
`_iqcftch'
   tomc.o(.text+0x192):tomc.c: undefined reference to
`sqlca'
   collect2: ld returned 1 exit status
   make: *** [tomc.exe] Error 1
   
   bash-2.02:[/usr/Demo/usr2/cygwin/tom_ec]$


My makefile looks like this and is used for both unix
and cygwin:

# Makefile fuer TOMC.EC

KUNDE = BARTELT
DL_OAK = OAK_SCOUNIX
INF_INCL = -I/usr/demo/informix/incl/esql
LIBS = libs/libsql.a libs/libos.a libs/libasf.a
libs/libgen.a libs/libos.a libs/libgen.a
libs/libnsl_s.a libs/libcrypt_i.a libs/libsocket.a
libs/libm.a
CFLAGS = -D$(KUNDE) -D$(DL_OAK) $(INF_INCL)

tomc.exe: tomc.o
	    gcc tomc.o -o tomc.exe $(LIBS)

tomc.o: tomc.c
	    gcc -c $(CFLAGS) tomc.c

#Ende Makefile


What is the reason for this errors? Are the libraries
in a wrong format? What am I doing wrong? If someone
wants to help, I can mail the source files and the
libraries.

I'm using Windows NT 4 SP 5
          SCO Unix Open Server 5
          Cygwin b20.1 with dll from 15.01.1999

Here's my "cygcheck -s -v -r":


Cygnus Win95/NT Configuration Diagnostics
Current System Time: Mon Nov 29 10:45:55 1999

WinNT Ver 4.0 build 1381 Service Pack 5

Path:	/bin
	/WINNT/system32
	/WINNT
	.

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

CYGWIN32 = `tty'
HOME = `/usr/Labor2/usr2/home/thomas/eigene
dateien/cygwin/examples'
MAKE_MODE = `UNIX'
PWD = `/usr/Labor2/usr2/home/thomas/eigene
dateien/cygwin/examples'

!C: = `C:\'
ALARMDEV = `'
BS = `SCO'
CLASSPATH =
`.;C:\VisualCafe\JAVA\LIB;C:\VisualCafe\JAVA\LIB\SYMCLASS.ZIP;C:\VisualCafe\JAVA\LIB\CLASSES.ZIP;C:\VisualCafe\JFC\SWINGALL.JAR;C:\VisualCafe\BIN\COMPONENTS\SFC.JAR;C:\VisualCafe\BIN\COMPONENTS\SYMBEANS.JAR;C:\VisualCafe\JAVA\LIB\DBAW.ZIP;C:\VisualCafe\BIN\COMPONENTS\DBAW_AWT.JAR;C:\VisualCafe\BIN\COMPONENTS\Databind.JAR;C:\VisualCafe\JAVA\LIB\Collections.zip;C:\VisualCafe\JAVA\LIB\icebrowserbean.jar;C:\VisualCafe\JAVA\LIB\jsdk.jar;C:\VisualCafe\JAVA\LIB\SYMTOOLS.JAR;C:\VisualCafe\JAVA\LIB\Olite35.JAR'
CLIENT_LOCALE = `german_germany.8859'
COLLCHAR = `0'
COMPUTERNAME = `PC_SCHOBER'
COMSPEC = `C:\WINNT\system32\cmd.exe'
CSCAPEDIR = `/usr/Demo/usr2/users/lab/cscape'
D =
`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/dl'
DATABASE = `labor'
DBDATE = `DMY4/'
DBLANG = `2'
DB_LOCALE = `german_germany.8859'
DL =
`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/dl'
DL_OAK = `OAK_SCOUNIX'
DL_UTIL =
`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/dl/util'
ENGINE = `ONLINE'
EXINIT = `set noai number showmode tabstop=4
timeout=300'
HOMEDRIVE = `C:'
HOMEPATH = `\'
HOSTNAME = `pc_schober'
HOSTTYPE = `i586'
I =
`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/io'
INFORMIXDIR = `/usr/demo/informix'
INFORMIXSERVER = `demo'
IO =
`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/io'
IO_UTIL =
`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/io/util'
KUNDE = `BARTELT'
L2USR2 = `/usr/Labor2/usr2'
LANG = `german_germany.8859'
LC_COLLATE = `german_germany.8859'
LOGONSERVER = `\\BAG-HANDEL'
MACHTYPE = `i586-pc-cygwin32'
NTSOURCE =
`/usr/Labor2/usr2/projekt/dlio/nt/develop/source'
NUMBER_OF_PROCESSORS = `1'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
OSTYPE = `cygwin32'
PATHEXT = `.COM;.EXE;.BAT;.CMD'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 7 Stepping
3, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0703'
PROMPT = `$P$G'
PS1 = `\s-\v:[$PWD]\$ '
PS2 = `> '
PS3 = `#? '
PS4 = `+ '
PSPAR = `-ef'
ROOTDIR = `C:/MKSDemo'
SERVER_LOCALE = `german_germany.8859'
SHELL = `C:/MKSDemo/mksnt/sh.exe'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `C:\TEMP'
TERM = `cygwin'
TMP = `C:\TEMP'
TMPDIR = `C:/TEMP'
USERDOMAIN = `HANDEL'
USERNAME = `schober'
USERPROFILE = `C:\WINNT\Profiles\schober'
USR2 = `/usr/Labor1/usr2'
USR3 = `/usr/Labor1/usr3'
USR4 = `/usr/Labor1/usr4'
USR5 = `/usr/Labor1/usr5'
WINDIR = `C:\WINNT'
_ =
`/Programme/cygwin/cygwin-b20/H-i586-cygwin32/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\00
  (default) = `f:\datalab\source'
  unix = `usr/Demo/dummysql'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\01
  (default) = `f:\users\informix'
  unix = `/usr/demo/informix'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\02
  (default) = `u:'
  unix = `/usr/Labor2/usr2'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\03
  (default) = `q:'
  unix = `/usr/Labor1/usr5'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\04
  (default) = `p:'
  unix = `/usr/Labor1/usr4'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\05
  (default) = `o:'
  unix = `/usr/Labor1/usr3'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\06
  (default) = `n:'
  unix = `/usr/Labor1/usr2'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\07
  (default) = `c:\WINNT\Profiles\schober\Eigene
Dateien\Cygwin\Examples'
  unix = `/usr/Examples'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\08
  (default) = `f:'
  unix = `/usr/Demo/usr2'
  fbinary = 0x00000001
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\09
  (default) = `f:\datalab\source'
  unix = `/usr/Demo/dummysql'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\0A
  (default) = `c:\Programme\cygwin\cygwin-b20\etc'
  unix = `/etc'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\0B
  (default) =
`c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin'
  unix = `/bin'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\0C
  (default) = `C:'
  unix = `/'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start
Menu\&Programs\Cygnus Solutions
  (default) = (unsupported type)
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
B20
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
B20\B20.1
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\00
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\01
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\02
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\03
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\04
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\05
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\06
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\07
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\08
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\09
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0E
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0F
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\10
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\11
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\12
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\13
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\14
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\15
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\16
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\17
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\18
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\19
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\1A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\1B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\1C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\1D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\GNUPro\i586-cygwin32
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\GNUPro\i586-cygwin32\i586-cygwin32
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\GNUPro\i586-cygwin32\i586-cygwin32\cygwin-B20.1
  (default) = `c:\programme\cygwin\cygwin-b20'
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Cygnus
Cygwin B20
  (default) = `C:\WINNT\IsUninst.exe
-fc:\programme\cygwin\cygwin-b20\Uninst.isu'
  DisplayName = `Cygwin B20'

a:\ fd           N/A    N/A                    
c:\ hd  NTFS    4031Mb  38% CP CS UN PA FC     
d:\ hd  NTFS    4024Mb   1% CP CS UN PA FC     
e:\ cd           N/A    N/A                    
f:\ net NTFS    1562Mb  98%          PA        usr2
m:\ net NTFS     996Mb  88% CP CS UN PA FC     Disks
n:\ net Samba    292Mb  58% CP    UN           usr2
o:\ net Samba    395Mb  90% CP    UN           usr3
p:\ net Samba    341Mb  95% CP    UN           usr4
q:\ net Samba    341Mb  64% CP    UN           usr5
r:\ net NTFS     976Mb 100%          PA       
usr3disks
s:\ net NTFS     976Mb 100%          PA       
usr3share
u:\ net NTFS    6092Mb  70% CP CS UN PA FC     usr2

C:                                                    
   /                   native  text!=binary
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin    
   /bin                native  text!=binary
c:\Programme\cygwin\cygwin-b20\etc                    
   /etc                native  text!=binary
f:\datalab\source                                     
   /usr/Demo/dummysql  native  text!=binary
f:                                                    
   /usr/Demo/usr2      native  text=binary
c:\WINNT\Profiles\schober\Eigene
Dateien\Cygwin\Examples  /usr/Examples       native 
text!=binary
n:                                                    
   /usr/Labor1/usr2    native  text!=binary
o:                                                    
   /usr/Labor1/usr3    native  text!=binary
p:                                                    
   /usr/Labor1/usr4    native  text!=binary
q:                                                    
   /usr/Labor1/usr5    native  text!=binary
u:                                                    
   /usr/Labor2/usr2    native  text!=binary
f:\users\informix                                     
   /usr/demo/informix  native  text!=binary
f:\datalab\source                                     
   usr/Demo/dummysql   native  text!=binary

Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\bash.exe
Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cat.exe
Not Found: cpp (good!)
Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\find.exe
Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\gcc.exe
Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\gdb.exe
Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\ld.exe
Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\ls.exe
Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\make.exe
Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\sh.exe

  371k 1998/12/01
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtcl80.dll
- os=4.0 img=1.0 sys=4.0
                  "cygtcl80.dll" v0.0 ts=1998/12/1
9:25
    5k 1998/12/01
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtclpip80.dll
- os=4.0 img=1.0 sys=4.0
   10k 1998/12/01
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtclreg80.dll
- os=4.0 img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0 ts=1998/12/1
9:25
  600k 1998/12/01
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtk80.dll
- os=4.0 img=1.0 sys=4.0
                  "cygtk80.dll" v0.0 ts=1998/12/1 9:28
  451k 1999/09/28
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygwin1.dll
- os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=1999/1/16 6:09
  446k 1998/12/03
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygwin1.original.dll
- os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=1998/12/4 5:39
Use -h to see help about each section

__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: undefined references
  1999-11-29  1:54 TS
@ 1999-11-29 16:59 ` Jan Theodore Galkowski
  1999-11-30 23:39   ` Jan Theodore Galkowski
  1999-11-30 23:39 ` TS
  1 sibling, 1 reply; 15+ messages in thread
From: Jan Theodore Galkowski @ 1999-11-29 16:59 UTC (permalink / raw)
  To: TS; +Cc: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 16173 bytes --]

At 01:54 AM 11/29/99 -0800, TS wrote:
>I have to compile ESQL/C-Source with Cygwin. I have a
>preprocessor that makes c-source out of my
>ESQL/C-source. To compile this resulting c-source with
>a standard unix compiler, I have to use some special
>libraries. If I do this with SCO-Unix 5, the resulting
>program works fine. If I use Cygwin, the result is:
>
>   bash-2.02:[/usr/Demo/usr2/cygwin/tom_ec]$ make -f
>tom_demo.mak
>   
>   gcc -c -DBARTELT -DOAK_SCOUNIX
>-I/usr/demo/informix/incl/esql tomc.c
>   gcc tomc.o -o tomc.exe libs/libsql.a libs/libos.a
>libs/libasf.a libs/libgen.a libs/libos.a libs/libgen.a
>libs/libnsl_s.a libs/libcrypt_i.a libs/libsocket.a
>libs/libm.a
>   tomc.o(.text+0xb4):tomc.c: undefined reference to
>`sqlca'
>   tomc.o(.text+0xce):tomc.c: undefined reference to
>`_iqdbase'
>   tomc.o(.text+0xd6):tomc.c: undefined reference to
>`sqlca'
>   tomc.o(.text+0x102):tomc.c: undefined reference to
>`_iqlocate_cursor'
>   tomc.o(.text+0x10d):tomc.c: undefined reference to
>`_iqcdcl'
>   tomc.o(.text+0x115):tomc.c: undefined reference to
>`sqlca'
>   tomc.o(.text+0x13a):tomc.c: undefined reference to
>`_iqlocate_cursor'
>   tomc.o(.text+0x145):tomc.c: undefined reference to
>`_iqdcopen'
>   tomc.o(.text+0x14d):tomc.c: undefined reference to
>`sqlca'
>   tomc.o(.text+0x17f):tomc.c: undefined reference to
>`_iqlocate_cursor'
>   tomc.o(.text+0x18a):tomc.c: undefined reference to
>`_iqcftch'
>   tomc.o(.text+0x192):tomc.c: undefined reference to
>`sqlca'
>   collect2: ld returned 1 exit status
>   make: *** [tomc.exe] Error 1
>   
>   bash-2.02:[/usr/Demo/usr2/cygwin/tom_ec]$
>
>
>My makefile looks like this and is used for both unix
>and cygwin:
>
># Makefile fuer TOMC.EC
>
>KUNDE = BARTELT
>DL_OAK = OAK_SCOUNIX
>INF_INCL = -I/usr/demo/informix/incl/esql
>LIBS = libs/libsql.a libs/libos.a libs/libasf.a
>libs/libgen.a libs/libos.a libs/libgen.a
>libs/libnsl_s.a libs/libcrypt_i.a libs/libsocket.a
>libs/libm.a
>CFLAGS = -D$(KUNDE) -D$(DL_OAK) $(INF_INCL)
>
>tomc.exe: tomc.o
>	    gcc tomc.o -o tomc.exe $(LIBS)
>
>tomc.o: tomc.c
>	    gcc -c $(CFLAGS) tomc.c
>
>#Ende Makefile
>
>
>What is the reason for this errors? Are the libraries
>in a wrong format? What am I doing wrong? If someone
>wants to help, I can mail the source files and the
>libraries.
>
>I'm using Windows NT 4 SP 5
>          SCO Unix Open Server 5
>          Cygwin b20.1 with dll from 15.01.1999  

What's your database?  Since it's not in the
list and the errors all appear to be database
related, it appears that you failed to mention
the appropriate database libraries or archives
for your program to link with.

  --jt

>
>Here's my "cygcheck -s -v -r":
>
>
>Cygnus Win95/NT Configuration Diagnostics
>Current System Time: Mon Nov 29 10:45:55 1999
>
>WinNT Ver 4.0 build 1381 Service Pack 5
>
>Path:	/bin
>	/WINNT/system32
>	/WINNT
>	.
>
>SysDir: C:\WINNT\System32
>WinDir: C:\WINNT
>
>CYGWIN32 = `tty'
>HOME = `/usr/Labor2/usr2/home/thomas/eigene
>dateien/cygwin/examples'
>MAKE_MODE = `UNIX'
>PWD = `/usr/Labor2/usr2/home/thomas/eigene
>dateien/cygwin/examples'
>
>!C: = `C:\'
>ALARMDEV = `'
>BS = `SCO'
>CLASSPATH =
>`.;C:\VisualCafe\JAVA\LIB;C:\VisualCafe\JAVA\LIB\SYMCLASS.ZIP;C:\VisualCafe
\JAVA\LIB\CLASSES.ZIP;C:\VisualCafe\JFC\SWINGALL.JAR;C:\VisualCafe\BIN\COMPO
NENTS\SFC.JAR;C:\VisualCafe\BIN\COMPONENTS\SYMBEANS.JAR;C:\VisualCafe\JAVA\L
IB\DBAW.ZIP;C:\VisualCafe\BIN\COMPONENTS\DBAW_AWT.JAR;C:\VisualCafe\BIN\COMP
ONENTS\Databind.JAR;C:\VisualCafe\JAVA\LIB\Collections.zip;C:\VisualCafe\JAV
A\LIB\icebrowserbean.jar;C:\VisualCafe\JAVA\LIB\jsdk.jar;C:\VisualCafe\JAVA\
LIB\SYMTOOLS.JAR;C:\VisualCafe\JAVA\LIB\Olite35.JAR'
>CLIENT_LOCALE = `german_germany.8859'
>COLLCHAR = `0'
>COMPUTERNAME = `PC_SCHOBER'
>COMSPEC = `C:\WINNT\system32\cmd.exe'
>CSCAPEDIR = `/usr/Demo/usr2/users/lab/cscape'
>D =
>`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/dl'
>DATABASE = `labor'
>DBDATE = `DMY4/'
>DBLANG = `2'
>DB_LOCALE = `german_germany.8859'
>DL =
>`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/dl'
>DL_OAK = `OAK_SCOUNIX'
>DL_UTIL =
>`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/dl/util'
>ENGINE = `ONLINE'
>EXINIT = `set noai number showmode tabstop=4
>timeout=300'
>HOMEDRIVE = `C:'
>HOMEPATH = `\'
>HOSTNAME = `pc_schober'
>HOSTTYPE = `i586'
>I =
>`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/io'
>INFORMIXDIR = `/usr/demo/informix'
>INFORMIXSERVER = `demo'
>IO =
>`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/io'
>IO_UTIL =
>`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/io/util'
>KUNDE = `BARTELT'
>L2USR2 = `/usr/Labor2/usr2'
>LANG = `german_germany.8859'
>LC_COLLATE = `german_germany.8859'
>LOGONSERVER = `\\BAG-HANDEL'
>MACHTYPE = `i586-pc-cygwin32'
>NTSOURCE =
>`/usr/Labor2/usr2/projekt/dlio/nt/develop/source'
>NUMBER_OF_PROCESSORS = `1'
>OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
>OS = `Windows_NT'
>OSTYPE = `cygwin32'
>PATHEXT = `.COM;.EXE;.BAT;.CMD'
>PROCESSOR_ARCHITECTURE = `x86'
>PROCESSOR_IDENTIFIER = `x86 Family 6 Model 7 Stepping
>3, GenuineIntel'
>PROCESSOR_LEVEL = `6'
>PROCESSOR_REVISION = `0703'
>PROMPT = `$P$G'
>PS1 = `\s-\v:[$PWD]\$ '
>PS2 = `> '
>PS3 = `#? '
>PS4 = `+ '
>PSPAR = `-ef'
>ROOTDIR = `C:/MKSDemo'
>SERVER_LOCALE = `german_germany.8859'
>SHELL = `C:/MKSDemo/mksnt/sh.exe'
>SHLVL = `1'
>SYSTEMDRIVE = `C:'
>SYSTEMROOT = `C:\WINNT'
>TEMP = `C:\TEMP'
>TERM = `cygwin'
>TMP = `C:\TEMP'
>TMPDIR = `C:/TEMP'
>USERDOMAIN = `HANDEL'
>USERNAME = `schober'
>USERPROFILE = `C:\WINNT\Profiles\schober'
>USR2 = `/usr/Labor1/usr2'
>USR3 = `/usr/Labor1/usr3'
>USR4 = `/usr/Labor1/usr4'
>USR5 = `/usr/Labor1/usr5'
>WINDIR = `C:\WINNT'
>_ =
>`/Programme/cygwin/cygwin-b20/H-i586-cygwin32/bin/cygcheck'
>
>HKEY_CURRENT_USER\Software\Cygnus Solutions
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\00
>  (default) = `f:\datalab\source'
>  unix = `usr/Demo/dummysql'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\01
>  (default) = `f:\users\informix'
>  unix = `/usr/demo/informix'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\02
>  (default) = `u:'
>  unix = `/usr/Labor2/usr2'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\03
>  (default) = `q:'
>  unix = `/usr/Labor1/usr5'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\04
>  (default) = `p:'
>  unix = `/usr/Labor1/usr4'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\05
>  (default) = `o:'
>  unix = `/usr/Labor1/usr3'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\06
>  (default) = `n:'
>  unix = `/usr/Labor1/usr2'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\07
>  (default) = `c:\WINNT\Profiles\schober\Eigene
>Dateien\Cygwin\Examples'
>  unix = `/usr/Examples'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\08
>  (default) = `f:'
>  unix = `/usr/Demo/usr2'
>  fbinary = 0x00000001
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\09
>  (default) = `f:\datalab\source'
>  unix = `/usr/Demo/dummysql'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0A
>  (default) = `c:\Programme\cygwin\cygwin-b20\etc'
>  unix = `/etc'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0B
>  (default) =
>`c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin'
>  unix = `/bin'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>setup\b15.0\mounts\0C
>  (default) = `C:'
>  unix = `/'
>  fbinary = 0x00000000
>  fsilent = 0x00000000
>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOr
der\Start
>Menu\&Programs\Cygnus Solutions
>  (default) = (unsupported type)
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
>B20
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
>B20\B20.1
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\00
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\01
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\02
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\03
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\04
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\05
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\06
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\07
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\08
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\09
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\0A
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\0B
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\0C
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\0D
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\0E
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\0F
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\10
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\11
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\12
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\13
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\14
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\15
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\16
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\17
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\18
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\19
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\1A
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\1B
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\1C
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\CYGWIN.DLL setup\b15.0\mounts\1D
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\GNUPro\i586-cygwin32
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\GNUPro\i586-cygwin32\i586-cygwin32
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
>Solutions\GNUPro\i586-cygwin32\i586-cygwin32\cygwin-B20.1
>  (default) = `c:\programme\cygwin\cygwin-b20'
>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Cygnus
>Cygwin B20
>  (default) = `C:\WINNT\IsUninst.exe
>-fc:\programme\cygwin\cygwin-b20\Uninst.isu'
>  DisplayName = `Cygwin B20'
>
>a:\ fd           N/A    N/A                    
>c:\ hd  NTFS    4031Mb  38% CP CS UN PA FC     
>d:\ hd  NTFS    4024Mb   1% CP CS UN PA FC     
>e:\ cd           N/A    N/A                    
>f:\ net NTFS    1562Mb  98%          PA        usr2
>m:\ net NTFS     996Mb  88% CP CS UN PA FC     Disks
>n:\ net Samba    292Mb  58% CP    UN           usr2
>o:\ net Samba    395Mb  90% CP    UN           usr3
>p:\ net Samba    341Mb  95% CP    UN           usr4
>q:\ net Samba    341Mb  64% CP    UN           usr5
>r:\ net NTFS     976Mb 100%          PA       
>usr3disks
>s:\ net NTFS     976Mb 100%          PA       
>usr3share
>u:\ net NTFS    6092Mb  70% CP CS UN PA FC     usr2
>
>C:                                                    
>   /                   native  text!=binary
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin    
>   /bin                native  text!=binary
>c:\Programme\cygwin\cygwin-b20\etc                    
>   /etc                native  text!=binary
>f:\datalab\source                                     
>   /usr/Demo/dummysql  native  text!=binary
>f:                                                    
>   /usr/Demo/usr2      native  text=binary
>c:\WINNT\Profiles\schober\Eigene
>Dateien\Cygwin\Examples  /usr/Examples       native 
>text!=binary
>n:                                                    
>   /usr/Labor1/usr2    native  text!=binary
>o:                                                    
>   /usr/Labor1/usr3    native  text!=binary
>p:                                                    
>   /usr/Labor1/usr4    native  text!=binary
>q:                                                    
>   /usr/Labor1/usr5    native  text!=binary
>u:                                                    
>   /usr/Labor2/usr2    native  text!=binary
>f:\users\informix                                     
>   /usr/demo/informix  native  text!=binary
>f:\datalab\source                                     
>   usr/Demo/dummysql   native  text!=binary
>
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\bash.exe
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cat.exe
>Not Found: cpp (good!)
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\find.exe
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\gcc.exe
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\gdb.exe
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\ld.exe
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\ls.exe
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\make.exe
>Found:
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\sh.exe
>
>  371k 1998/12/01
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtcl80.dll
>- os=4.0 img=1.0 sys=4.0
>                  "cygtcl80.dll" v0.0 ts=1998/12/1
>9:25
>    5k 1998/12/01
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtclpip80.dll
>- os=4.0 img=1.0 sys=4.0
>   10k 1998/12/01
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtclreg80.dll
>- os=4.0 img=1.0 sys=4.0
>                  "cygtclreg80.dll" v0.0 ts=1998/12/1
>9:25
>  600k 1998/12/01
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtk80.dll
>- os=4.0 img=1.0 sys=4.0
>                  "cygtk80.dll" v0.0 ts=1998/12/1 9:28
>  451k 1999/09/28
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygwin1.dll
>- os=4.0 img=1.0 sys=4.0
>                  "cygwin1.dll" v0.0 ts=1999/1/16 6:09
>  446k 1998/12/03
>c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygwin1.original.dll
>- os=4.0 img=1.0 sys=4.0
>                  "cygwin1.dll" v0.0 ts=1998/12/4 5:39
>Use -h to see help about each section
>
>__________________________________________________
>Do You Yahoo!?
>Thousands of Stores.  Millions of Products.  All in one place.
>Yahoo! Shopping: http://shopping.yahoo.com
>
>--
>Want to unsubscribe from this list?
>Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>
>
______________________________________________________________________
 Jan Theodore Galkowski   °o°   (:-)}        demiourgos@smalltalk.org 
 www.smalltalk.org/                                       squeak.org/        
 www.ascent.com/books/stback.html            jtgalkowski@alum.mit.edu      
 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: undefined references
@ 1999-11-29  7:54 TS
  1999-11-30 23:39 ` TS
  0 siblings, 1 reply; 15+ messages in thread
From: TS @ 1999-11-29  7:54 UTC (permalink / raw)
  To: Larry Hall (RFK Partners, Inc); +Cc: cygwin

My libraries are from Informix.I need them to compile
the ESQL/C-part of the source.
How can I see what format a library has?
Which format does Cygwin's gcc need?
How can I change the format? Is there a possibility?

Thanks in advance,

Tom.

--- "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
schrieb:
> At 01:54 AM 11/29/99 -0800, you wrote:
> <snip>
> 
> >What is the reason for this errors? Are the
> libraries
> >in a wrong format? What am I doing wrong? If
> someone
> >wants to help, I can mail the source files and the
> >libraries.
> >
> 
> My guess is the library format.  Where did you get
> them?
> I assume you are not just using the ones from SCO
> UNIX,
> right?  If you have versions that were created for
> Cygwin
> (by you are someone else), then libraries are not
> your 
> problem.  Otherwise, they are!;-)
> 
> 
> Larry Hall                             
> lhall@rfk.com
> RFK Partners, Inc.                     
> http://www.rfk.com
> 118 Washington Street                   (508)
> 893-9779 - RFK Office
> Holliston, MA 01746                     (508)
> 893-9889 - FAX
>                                         (508)
> 560-1285 - cell phone
> 

__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 15+ messages in thread

* undefined references
@ 1999-11-29  1:54 TS
  1999-11-29 16:59 ` Jan Theodore Galkowski
  1999-11-30 23:39 ` TS
  0 siblings, 2 replies; 15+ messages in thread
From: TS @ 1999-11-29  1:54 UTC (permalink / raw)
  To: cygwin

I have to compile ESQL/C-Source with Cygwin. I have a
preprocessor that makes c-source out of my
ESQL/C-source. To compile this resulting c-source with
a standard unix compiler, I have to use some special
libraries. If I do this with SCO-Unix 5, the resulting
program works fine. If I use Cygwin, the result is:

   bash-2.02:[/usr/Demo/usr2/cygwin/tom_ec]$ make -f
tom_demo.mak
   
   gcc -c -DBARTELT -DOAK_SCOUNIX
-I/usr/demo/informix/incl/esql tomc.c
   gcc tomc.o -o tomc.exe libs/libsql.a libs/libos.a
libs/libasf.a libs/libgen.a libs/libos.a libs/libgen.a
libs/libnsl_s.a libs/libcrypt_i.a libs/libsocket.a
libs/libm.a
   tomc.o(.text+0xb4):tomc.c: undefined reference to
`sqlca'
   tomc.o(.text+0xce):tomc.c: undefined reference to
`_iqdbase'
   tomc.o(.text+0xd6):tomc.c: undefined reference to
`sqlca'
   tomc.o(.text+0x102):tomc.c: undefined reference to
`_iqlocate_cursor'
   tomc.o(.text+0x10d):tomc.c: undefined reference to
`_iqcdcl'
   tomc.o(.text+0x115):tomc.c: undefined reference to
`sqlca'
   tomc.o(.text+0x13a):tomc.c: undefined reference to
`_iqlocate_cursor'
   tomc.o(.text+0x145):tomc.c: undefined reference to
`_iqdcopen'
   tomc.o(.text+0x14d):tomc.c: undefined reference to
`sqlca'
   tomc.o(.text+0x17f):tomc.c: undefined reference to
`_iqlocate_cursor'
   tomc.o(.text+0x18a):tomc.c: undefined reference to
`_iqcftch'
   tomc.o(.text+0x192):tomc.c: undefined reference to
`sqlca'
   collect2: ld returned 1 exit status
   make: *** [tomc.exe] Error 1
   
   bash-2.02:[/usr/Demo/usr2/cygwin/tom_ec]$


My makefile looks like this and is used for both unix
and cygwin:

# Makefile fuer TOMC.EC

KUNDE = BARTELT
DL_OAK = OAK_SCOUNIX
INF_INCL = -I/usr/demo/informix/incl/esql
LIBS = libs/libsql.a libs/libos.a libs/libasf.a
libs/libgen.a libs/libos.a libs/libgen.a
libs/libnsl_s.a libs/libcrypt_i.a libs/libsocket.a
libs/libm.a
CFLAGS = -D$(KUNDE) -D$(DL_OAK) $(INF_INCL)

tomc.exe: tomc.o
	    gcc tomc.o -o tomc.exe $(LIBS)

tomc.o: tomc.c
	    gcc -c $(CFLAGS) tomc.c

#Ende Makefile


What is the reason for this errors? Are the libraries
in a wrong format? What am I doing wrong? If someone
wants to help, I can mail the source files and the
libraries.

I'm using Windows NT 4 SP 5
          SCO Unix Open Server 5
          Cygwin b20.1 with dll from 15.01.1999

Here's my "cygcheck -s -v -r":


Cygnus Win95/NT Configuration Diagnostics
Current System Time: Mon Nov 29 10:45:55 1999

WinNT Ver 4.0 build 1381 Service Pack 5

Path:	/bin
	/WINNT/system32
	/WINNT
	.

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

CYGWIN32 = `tty'
HOME = `/usr/Labor2/usr2/home/thomas/eigene
dateien/cygwin/examples'
MAKE_MODE = `UNIX'
PWD = `/usr/Labor2/usr2/home/thomas/eigene
dateien/cygwin/examples'

!C: = `C:\'
ALARMDEV = `'
BS = `SCO'
CLASSPATH =
`.;C:\VisualCafe\JAVA\LIB;C:\VisualCafe\JAVA\LIB\SYMCLASS.ZIP;C:\VisualCafe\JAVA\LIB\CLASSES.ZIP;C:\VisualCafe\JFC\SWINGALL.JAR;C:\VisualCafe\BIN\COMPONENTS\SFC.JAR;C:\VisualCafe\BIN\COMPONENTS\SYMBEANS.JAR;C:\VisualCafe\JAVA\LIB\DBAW.ZIP;C:\VisualCafe\BIN\COMPONENTS\DBAW_AWT.JAR;C:\VisualCafe\BIN\COMPONENTS\Databind.JAR;C:\VisualCafe\JAVA\LIB\Collections.zip;C:\VisualCafe\JAVA\LIB\icebrowserbean.jar;C:\VisualCafe\JAVA\LIB\jsdk.jar;C:\VisualCafe\JAVA\LIB\SYMTOOLS.JAR;C:\VisualCafe\JAVA\LIB\Olite35.JAR'
CLIENT_LOCALE = `german_germany.8859'
COLLCHAR = `0'
COMPUTERNAME = `PC_SCHOBER'
COMSPEC = `C:\WINNT\system32\cmd.exe'
CSCAPEDIR = `/usr/Demo/usr2/users/lab/cscape'
D =
`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/dl'
DATABASE = `labor'
DBDATE = `DMY4/'
DBLANG = `2'
DB_LOCALE = `german_germany.8859'
DL =
`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/dl'
DL_OAK = `OAK_SCOUNIX'
DL_UTIL =
`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/dl/util'
ENGINE = `ONLINE'
EXINIT = `set noai number showmode tabstop=4
timeout=300'
HOMEDRIVE = `C:'
HOMEPATH = `\'
HOSTNAME = `pc_schober'
HOSTTYPE = `i586'
I =
`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/io'
INFORMIXDIR = `/usr/demo/informix'
INFORMIXSERVER = `demo'
IO =
`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/io'
IO_UTIL =
`/usr/Labor2/usr2/projekt/dlio/nt/develop/source/io/util'
KUNDE = `BARTELT'
L2USR2 = `/usr/Labor2/usr2'
LANG = `german_germany.8859'
LC_COLLATE = `german_germany.8859'
LOGONSERVER = `\\BAG-HANDEL'
MACHTYPE = `i586-pc-cygwin32'
NTSOURCE =
`/usr/Labor2/usr2/projekt/dlio/nt/develop/source'
NUMBER_OF_PROCESSORS = `1'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
OSTYPE = `cygwin32'
PATHEXT = `.COM;.EXE;.BAT;.CMD'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 7 Stepping
3, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0703'
PROMPT = `$P$G'
PS1 = `\s-\v:[$PWD]\$ '
PS2 = `> '
PS3 = `#? '
PS4 = `+ '
PSPAR = `-ef'
ROOTDIR = `C:/MKSDemo'
SERVER_LOCALE = `german_germany.8859'
SHELL = `C:/MKSDemo/mksnt/sh.exe'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `C:\TEMP'
TERM = `cygwin'
TMP = `C:\TEMP'
TMPDIR = `C:/TEMP'
USERDOMAIN = `HANDEL'
USERNAME = `schober'
USERPROFILE = `C:\WINNT\Profiles\schober'
USR2 = `/usr/Labor1/usr2'
USR3 = `/usr/Labor1/usr3'
USR4 = `/usr/Labor1/usr4'
USR5 = `/usr/Labor1/usr5'
WINDIR = `C:\WINNT'
_ =
`/Programme/cygwin/cygwin-b20/H-i586-cygwin32/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\00
  (default) = `f:\datalab\source'
  unix = `usr/Demo/dummysql'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\01
  (default) = `f:\users\informix'
  unix = `/usr/demo/informix'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\02
  (default) = `u:'
  unix = `/usr/Labor2/usr2'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\03
  (default) = `q:'
  unix = `/usr/Labor1/usr5'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\04
  (default) = `p:'
  unix = `/usr/Labor1/usr4'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\05
  (default) = `o:'
  unix = `/usr/Labor1/usr3'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\06
  (default) = `n:'
  unix = `/usr/Labor1/usr2'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\07
  (default) = `c:\WINNT\Profiles\schober\Eigene
Dateien\Cygwin\Examples'
  unix = `/usr/Examples'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\08
  (default) = `f:'
  unix = `/usr/Demo/usr2'
  fbinary = 0x00000001
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\09
  (default) = `f:\datalab\source'
  unix = `/usr/Demo/dummysql'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\0A
  (default) = `c:\Programme\cygwin\cygwin-b20\etc'
  unix = `/etc'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\0B
  (default) =
`c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin'
  unix = `/bin'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
setup\b15.0\mounts\0C
  (default) = `C:'
  unix = `/'
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start
Menu\&Programs\Cygnus Solutions
  (default) = (unsupported type)
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
B20
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
B20\B20.1
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\00
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\01
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\02
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\03
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\04
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\05
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\06
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\07
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\08
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\09
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0E
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\0F
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\10
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\11
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\12
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\13
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\14
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\15
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\16
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\17
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\18
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\19
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\1A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\1B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\1C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\CYGWIN.DLL setup\b15.0\mounts\1D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\GNUPro\i586-cygwin32
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\GNUPro\i586-cygwin32\i586-cygwin32
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\GNUPro\i586-cygwin32\i586-cygwin32\cygwin-B20.1
  (default) = `c:\programme\cygwin\cygwin-b20'
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Cygnus
Cygwin B20
  (default) = `C:\WINNT\IsUninst.exe
-fc:\programme\cygwin\cygwin-b20\Uninst.isu'
  DisplayName = `Cygwin B20'

a:\ fd           N/A    N/A                    
c:\ hd  NTFS    4031Mb  38% CP CS UN PA FC     
d:\ hd  NTFS    4024Mb   1% CP CS UN PA FC     
e:\ cd           N/A    N/A                    
f:\ net NTFS    1562Mb  98%          PA        usr2
m:\ net NTFS     996Mb  88% CP CS UN PA FC     Disks
n:\ net Samba    292Mb  58% CP    UN           usr2
o:\ net Samba    395Mb  90% CP    UN           usr3
p:\ net Samba    341Mb  95% CP    UN           usr4
q:\ net Samba    341Mb  64% CP    UN           usr5
r:\ net NTFS     976Mb 100%          PA       
usr3disks
s:\ net NTFS     976Mb 100%          PA       
usr3share
u:\ net NTFS    6092Mb  70% CP CS UN PA FC     usr2

C:                                                    
   /                   native  text!=binary
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin    
   /bin                native  text!=binary
c:\Programme\cygwin\cygwin-b20\etc                    
   /etc                native  text!=binary
f:\datalab\source                                     
   /usr/Demo/dummysql  native  text!=binary
f:                                                    
   /usr/Demo/usr2      native  text=binary
c:\WINNT\Profiles\schober\Eigene
Dateien\Cygwin\Examples  /usr/Examples       native 
text!=binary
n:                                                    
   /usr/Labor1/usr2    native  text!=binary
o:                                                    
   /usr/Labor1/usr3    native  text!=binary
p:                                                    
   /usr/Labor1/usr4    native  text!=binary
q:                                                    
   /usr/Labor1/usr5    native  text!=binary
u:                                                    
   /usr/Labor2/usr2    native  text!=binary
f:\users\informix                                     
   /usr/demo/informix  native  text!=binary
f:\datalab\source                                     
   usr/Demo/dummysql   native  text!=binary

Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\bash.exe
Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cat.exe
Not Found: cpp (good!)
Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\find.exe
Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\gcc.exe
Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\gdb.exe
Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\ld.exe
Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\ls.exe
Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\make.exe
Found:
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\sh.exe

  371k 1998/12/01
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtcl80.dll
- os=4.0 img=1.0 sys=4.0
                  "cygtcl80.dll" v0.0 ts=1998/12/1
9:25
    5k 1998/12/01
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtclpip80.dll
- os=4.0 img=1.0 sys=4.0
   10k 1998/12/01
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtclreg80.dll
- os=4.0 img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0 ts=1998/12/1
9:25
  600k 1998/12/01
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygtk80.dll
- os=4.0 img=1.0 sys=4.0
                  "cygtk80.dll" v0.0 ts=1998/12/1 9:28
  451k 1999/09/28
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygwin1.dll
- os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=1999/1/16 6:09
  446k 1998/12/03
c:\Programme\cygwin\cygwin-b20\H-i586-cygwin32\bin\cygwin1.original.dll
- os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=1998/12/4 5:39
Use -h to see help about each section

__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Undefined references
  1999-05-17 18:35 Undefined references dale henderson
@ 1999-05-31 21:10 ` dale henderson
  0 siblings, 0 replies; 15+ messages in thread
From: dale henderson @ 1999-05-31 21:10 UTC (permalink / raw)
  To: cygwin

I did not have the order of the linkage correct. I added
libglcanvas.a to &(WXLIB) to fix it.

You may want to correct the file makefile.g95 in the glcanvas samples 
directories...


cheers,

dale henderson
dalehend@netscape.net


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Undefined references
@ 1999-05-17 18:35 dale henderson
  1999-05-31 21:10 ` dale henderson
  0 siblings, 1 reply; 15+ messages in thread
From: dale henderson @ 1999-05-17 18:35 UTC (permalink / raw)
  To: cygwin

I did not have the order of the linkage correct. I added
libglcanvas.a to &(WXLIB) to fix it.

You may want to correct the file makefile.g95 in the glcanvas samples 
directories...


cheers,

dale henderson
dalehend@netscape.net


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 15+ messages in thread

* undefined references
@ 1999-01-31 23:52 Brian Ryner
  1999-01-31 23:52 ` Mumit Khan
  0 siblings, 1 reply; 15+ messages in thread
From: Brian Ryner @ 1999-01-31 23:52 UTC (permalink / raw)
  To: gnu-win32

Hi-

I'm attempting to port Mozilla's NSPR library to compile under Cygwin. 
I'm using B20.1, and the egcs 1.1.1 binaries from the cygwin site.  I'm
having a problem when it tries to build the DLL.  The command line it's
running and the errors that are generated are attached below.  It seems
like I'm not linking to the right libraries, but I can't figure out
which ones exactly.  Below the output I've also attached some of the
lines of code where it says the undefined references are.  Any help is
much appreciated.

ld  --dll -o WIN954.0_DBG.OBJ/libnspr21.dll -e _DllMain@12 --base-file
WIN954.0_DBG.OBJ/libnspr21.dll.base WIN954.0_DBG.OBJ/prvrsion.obj
io/WIN954.0_DBG.OBJ/prfdcach.obj io/WIN954.0_DBG.OBJ/prmwait.obj
io/WIN954.0_DBG.OBJ/prmapopt.obj io/WIN954.0_DBG.OBJ/priometh.obj
io/WIN954.0_DBG.OBJ/prlayer.obj io/WIN954.0_DBG.OBJ/prlog.obj
io/WIN954.0_DBG.OBJ/prmmap.obj io/WIN954.0_DBG.OBJ/prpolevt.obj
io/WIN954.0_DBG.OBJ/prprf.obj io/WIN954.0_DBG.OBJ/prscanf.obj
io/WIN954.0_DBG.OBJ/prstdio.obj threads/WIN954.0_DBG.OBJ/prcmon.obj
threads/WIN954.0_DBG.OBJ/prtpd.obj linking/WIN954.0_DBG.OBJ/prlink.obj
malloc/WIN954.0_DBG.OBJ/prmalloc.obj malloc/WIN954.0_DBG.OBJ/prmem.obj
md/WIN954.0_DBG.OBJ/prosdep.obj memory/WIN954.0_DBG.OBJ/prseg.obj
misc/WIN954.0_DBG.OBJ/pralarm.obj misc/WIN954.0_DBG.OBJ/pratom.obj
misc/WIN954.0_DBG.OBJ/prcountr.obj misc/WIN954.0_DBG.OBJ/prdtoa.obj
misc/WIN954.0_DBG.OBJ/prenv.obj misc/WIN954.0_DBG.OBJ/prerror.obj
misc/WIN954.0_DBG.OBJ/prinit.obj misc/WIN954.0_DBG.OBJ/prinrval.obj
misc/WIN954.0_DBG.OBJ/prlog2.obj misc/WIN954.0_DBG.OBJ/prlong.obj
misc/WIN954.0_DBG.OBJ/prnetdb.obj misc/WIN954.0_DBG.OBJ/prolock.obj
misc/WIN954.0_DBG.OBJ/prsystem.obj misc/WIN954.0_DBG.OBJ/prthinfo.obj
misc/WIN954.0_DBG.OBJ/prtrace.obj misc/WIN954.0_DBG.OBJ/prtime.obj
io/WIN954.0_DBG.OBJ/prdir.obj io/WIN954.0_DBG.OBJ/prfile.obj
io/WIN954.0_DBG.OBJ/prio.obj io/WIN954.0_DBG.OBJ/prsocket.obj
threads/WIN954.0_DBG.OBJ/prcthr.obj threads/WIN954.0_DBG.OBJ/prdump.obj
threads/WIN954.0_DBG.OBJ/prmon.obj threads/WIN954.0_DBG.OBJ/prsem.obj
threads/combined/WIN954.0_DBG.OBJ/prucpu.obj
threads/combined/WIN954.0_DBG.OBJ/prucv.obj
threads/combined/WIN954.0_DBG.OBJ/prulock.obj
threads/combined/WIN954.0_DBG.OBJ/prustack.obj
threads/combined/WIN954.0_DBG.OBJ/pruthr.obj
md/windows/WIN954.0_DBG.OBJ/w95io.obj
md/windows/WIN954.0_DBG.OBJ/w95sock.obj
md/windows/WIN954.0_DBG.OBJ/w95thred.obj
md/windows/WIN954.0_DBG.OBJ/w95cv.obj
md/windows/WIN954.0_DBG.OBJ/ntgc.obj
md/windows/WIN954.0_DBG.OBJ/ntmisc.obj
md/windows/WIN954.0_DBG.OBJ/ntinrval.obj
md/windows/WIN954.0_DBG.OBJ/ntsem.obj
md/windows/WIN954.0_DBG.OBJ/win32_errors.obj
md/windows/WIN954.0_DBG.OBJ/w32poll.obj
md/windows/WIN954.0_DBG.OBJ/w95dllmain.obj  -luser32 -lgdi32 -lcomdlg32
-lkernel32 -ladvapi32 -lshell32 -lwsock32 -lwinmm -lc 
io/WIN954.0_DBG.OBJ/prprf.obj: In function `cvt_ll':
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/io/prprf.c:295: undefined
reference to `__udivdi3'
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/io/prprf.c:295: undefined
reference to `__umoddi3'
misc/WIN954.0_DBG.OBJ/prinrval.obj: In function
`PR_MillisecondsToInterval':
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/misc/prinrval.c:82:
undefined reference to `__udivdi3'
misc/WIN954.0_DBG.OBJ/prinrval.obj: In function
`PR_MicrosecondsToInterval':
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/misc/prinrval.c:97:
undefined reference to `__udivdi3'
misc/WIN954.0_DBG.OBJ/prinrval.obj: In function
`PR_IntervalToMilliseconds':
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/misc/prinrval.c:117:
undefined reference to `__udivdi3'
misc/WIN954.0_DBG.OBJ/prinrval.obj: In function
`PR_IntervalToMicroseconds':
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/misc/prinrval.c:132:
undefined reference to `__udivdi3'
misc/WIN954.0_DBG.OBJ/prtime.obj: In function `ComputeGMT':
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/misc/prtime.c:103:
undefined reference to `__divdi3'
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/misc/prtime.c:104:
undefined reference to `__moddi3'
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/misc/prtime.c:116:
undefined reference to `__divdi3'
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/misc/prtime.c:117:
undefined reference to `__moddi3'
misc/WIN954.0_DBG.OBJ/prtime.obj: In function `PR_LocalTimeParameters':
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/misc/prtime.c:668:
undefined reference to `__divdi3'
md/windows/WIN954.0_DBG.OBJ/w95io.obj: In function
`PR_FileTimeToPRTime':
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/md/windows/w95io.c:447:
undefined reference to `__divdi3'
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/md/windows/w95io.c:487:
undefined reference to `__divdi3'
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/md/windows/w95io.c:487:
undefined reference to `__divdi3'
md/windows/WIN954.0_DBG.OBJ/w95io.obj: In function `PR_MD_STAT':
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/md/windows/w95io.c:497:
undefined reference to `_stat'
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/md/windows/w95io.c:518:
undefined reference to `_stat'
md/windows/WIN954.0_DBG.OBJ/w95io.obj: In function `PR_MD_ACCESS':
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/md/windows/w95io.c:808:
undefined reference to `_access'
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/md/windows/w95io.c:811:
undefined reference to `_access'
md/windows/WIN954.0_DBG.OBJ/w95thred.obj: In function
`PR_MD_CREATE_THREAD':
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/md/windows/w95thred.c:108:
undefined reference to `_beginthreadex'
md/windows/WIN954.0_DBG.OBJ/w95thred.obj: In function `MD_EXIT':
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/md/windows/w95thred.c:202:
undefined reference to `_exit'
md/windows/WIN954.0_DBG.OBJ/ntmisc.obj: In function `PR_Now':
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/md/windows/ntmisc.c:73:
undefined reference to `ftime'
md/windows/WIN954.0_DBG.OBJ/ntmisc.obj: In function
`PR_Win32InitTimeZone':
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/md/windows/ntmisc.c:137:
undefined reference to `__imp__tzname'
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/md/windows/ntmisc.c:139:
undefined reference to `__imp__tzname'
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/md/windows/ntmisc.c:144:
undefined reference to `__imp__timezone'
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/md/windows/ntmisc.c:145:
undefined reference to `__imp__daylight'
md/windows/WIN954.0_DBG.OBJ/ntmisc.obj: In function `compare':
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/md/windows/ntmisc.c:346:
undefined reference to `_stricmp'
md/windows/WIN954.0_DBG.OBJ/ntinrval.obj: In function
`PR_MD_GET_INTERVAL':
/cygnus/cygwin-b20/src/mozilla/nsprpub/pr/src/md/windows/ntinrval.c:73:
undefined reference to `timeGetTime'
/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libc.a(abort.o): In
function `abort':
/home/noer/src/b20/comp-tools/devo/newlib/libc/stdlib/abort.c:62:
undefined reference to `_exit'
/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libc.a(freer.o): In
function `malloc_trim_r':
/home/noer/src/b20/comp-tools/devo/newlib/libc/stdlib/mallocr.c:3239:
undefined reference to `sysconf'
/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libc.a(openr.o): In
function `open_r':
/home/noer/src/b20/comp-tools/devo/newlib/libc/reent/openr.c:58:
undefined reference to `_open'
/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libc.a(vfprintf.o):
In function `vfprintf_r':
/home/noer/src/b20/comp-tools/devo/newlib/libc/stdio/vfprintf.c:703:
undefined reference to `__umoddi3'
/home/noer/src/b20/comp-tools/devo/newlib/libc/stdio/vfprintf.c:704:
undefined reference to `__udivdi3'
/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libc.a(mallocr.o):
In function `malloc_extend_top':
/home/noer/src/b20/comp-tools/devo/newlib/libc/stdlib/mallocr.c:2133:
undefined reference to `sysconf'
/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libc.a(signalr.o):
In function `kill_r':
/home/noer/src/b20/comp-tools/devo/newlib/libc/reent/signalr.c:59:
undefined reference to `_kill'
/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libc.a(signalr.o):
In function `getpid_r':
/home/noer/src/b20/comp-tools/devo/newlib/libc/reent/signalr.c:94:
undefined reference to `_getpid'
/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libc.a(sbrkr.o): In
function `sbrk_r':
/home/noer/src/b20/comp-tools/devo/newlib/libc/reent/sbrkr.c:61:
undefined reference to `_sbrk'
/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libc.a(fstatr.o):
In function `fstat_r':
/home/noer/src/b20/comp-tools/devo/newlib/libc/reent/fstatr.c:61:
undefined reference to `_fstat'
/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libc.a(closer.o):
In function `close_r':
/home/noer/src/b20/comp-tools/devo/newlib/libc/reent/closer.c:53:
undefined reference to `_close'
/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libc.a(writer.o):
In function `write_r':
/home/noer/src/b20/comp-tools/devo/newlib/libc/reent/writer.c:58:
undefined reference to `_write'
/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libc.a(lseekr.o):
In function `lseek_r':
/home/noer/src/b20/comp-tools/devo/newlib/libc/reent/lseekr.c:58:
undefined reference to `_lseek'
/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libc.a(readr.o): In
function `read_r':
/home/noer/src/b20/comp-tools/devo/newlib/libc/reent/readr.c:58:
undefined reference to `_read'
/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libc.a(sysfstat.o):
In function `fstat':
/home/noer/src/b20/comp-tools/devo/newlib/libc/syscalls/sysfstat.c:14:
undefined reference to `_fstat'
make[2]: *** [WIN954.0_DBG.OBJ/libnspr21.dll] Error 1


nsprpub/pr/src/io/prprf.c:295
	LL_UDIVMOD(&quot, &rem, num, rad);
this is a macro that is implemented as:
#define LL_UDIVMOD(qp, rp, a, b) \
    (*(qp) = ((PRUint64)(a) / (b)), \
     *(rp) = ((PRUint64)(a) % (b)))


-Brian Ryner
bryner@uiuc.edu
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: undefined references
  1999-01-31 23:52 undefined references Brian Ryner
@ 1999-01-31 23:52 ` Mumit Khan
  0 siblings, 0 replies; 15+ messages in thread
From: Mumit Khan @ 1999-01-31 23:52 UTC (permalink / raw)
  To: Brian Ryner; +Cc: gnu-win32

On Thu, 28 Jan 1999, Brian Ryner wrote:

> Hi-
> 
> I'm attempting to port Mozilla's NSPR library to compile under Cygwin. 
> I'm using B20.1, and the egcs 1.1.1 binaries from the cygwin site.  I'm
> having a problem when it tries to build the DLL.  The command line it's
> running and the errors that are generated are attached below.  It seems
> like I'm not linking to the right libraries, but I can't figure out
> which ones exactly.  Below the output I've also attached some of the
> lines of code where it says the undefined references are.  Any help is
> much appreciated.
> 
> ld  --dll -o WIN954.0_DBG.OBJ/libnspr21.dll -e _DllMain@12 --base-file

Few comments:
  
1. Don't use ld directly (if you do, you'll need to supply all the
   requisite libraries, such as -lcygwin and startup files manually);
   use `gcc'.

2. Use dllwrap to build the DLLs until DJ Delorie's work on ld to create
   DLLs directly is releases (or you could ask him to be a tester!).

3. _DllMain@12 is not correct entry point for Cygwin native programs. 
   It's __cygwin_dll_entry@12, which it dllwrap supplies for you.

   $ dllwrap -o foo.dll foo1.o foo2.o -lbar1 -lbar2

I'm assuming that you're trying to link with MSVC created objects, nor
are you trying to load this DLL from an MSVC app using LoadLibrary. If
it's the latter, use __cygwin_noncygwin_dll_entry@12 as the entry point
(``dllwrap --entry __cygwin_noncygwin_dll_entry@12'').

Regards,
Mumit


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2005-06-13 15:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-03 20:52 Undefined References pavan mandalkar
  -- strict thread matches above, loose matches on Subject: below --
2005-06-13 14:16 Undefined references Alireza Ghasemi
2005-06-13 15:24 ` Dave Korn
1999-12-02  2:53 undefined references TS
1999-12-31 13:28 ` TS
1999-11-29  7:54 TS
1999-11-30 23:39 ` TS
1999-11-29  1:54 TS
1999-11-29 16:59 ` Jan Theodore Galkowski
1999-11-30 23:39   ` Jan Theodore Galkowski
1999-11-30 23:39 ` TS
1999-05-17 18:35 Undefined references dale henderson
1999-05-31 21:10 ` dale henderson
1999-01-31 23:52 undefined references Brian Ryner
1999-01-31 23:52 ` Mumit Khan

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