delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/03/15:22:22

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20040303202146.2756.qmail@web41602.mail.yahoo.com>
Date: Wed, 3 Mar 2004 12:21:46 -0800 (PST)
From: pavan mandalkar <pavanum AT yahoo DOT com>
Subject: Undefined References
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
X-IsSubscribed: yes

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 AT 4'
/cygdrive/c/cygwin/lib/libgcc.a(w32-shared-ptr.o)(.text+0x131):
undefined 
reference to `_AddAtomA AT 4'
/cygdrive/c/cygwin/lib/libgcc.a(w32-shared-ptr.o)(.text+0x18e):
undefined 
reference to `_GetAtomNameA AT 12'
/cygdrive/c/cygwin/lib/libcygwin.a(libcmain.o)(.text+0x1f):
undefined 
reference to `_GetModuleHandleA AT 4'
/cygdrive/c/cygwin/lib/libcygwin.a(libcmain.o)(.text+0x29):
undefined 
reference to `_GetCommandLineA AT 0'
/cygdrive/c/cygwin/lib/libcygwin.a(libcmain.o)(.text+0x57):
undefined 
reference to `_GetStartupInfoA AT 4'
/cygdrive/c/cygwin/lib/libcygwin.a(libcmain.o)(.text+0x7c):
undefined 
reference to `_WinMain AT 16'
/cygdrive/c/cygwin/lib/libcygwin.a(_cygwin_crt0_common.o)(.text+0xbd):

undefined reference to `_GetModuleHandleA AT 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/

- Raw text -


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