This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Undefined References


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]