This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: strange linker messages
- To: "'Carl H. Sayres'" <chs11 at columbia dot edu>
- Subject: RE: strange linker messages
- From: Colin Peters <colin at bird dot fu dot is dot saga-u dot ac dot jp>
- Date: Sat, 10 May 1997 16:23:47 +0900
- Cc: "'GNU-Win32'" <gnu-win32 at cygnus dot com>
Carl H. Sayres[SMTP:chs11@columbia.edu] wrote:
>I'm getting the following liker messages which I don't understand.
>(I have no impure.c or _impure_ptr anywhere in my code!)
>Can soemone explain this to me? Thanks a bunch.
>
>$ cc -O2 -c sblat2.c
>$ cc sblat2.o ../../blas_alpha.a ../../F2CLIBS/libI77.a \
>../../F2CLIBS/libF77.a -lm -lc -o ../xblat2s
>
>C:\usr\GNU\H-i386-cygwin32\lib\gcc-lib\i386-cygwin32\cygnus-2.7.2-
>970404\../../../../i386-cygwin32\lib/libcygwin.a
>(libccrt0.o)(.data+0x0):libccrt0.cc: multiple definition of `_impure_ptr'
>
>C:\usr\GNU\H-i386-cygwin32\lib\gcc-lib\i386-cygwin32\cygnus-2.7.2-
>970404\../../../../i386-cygwin32\lib/libc.a(impure.o)(.data+0x2ec):impure.c:
>first defined here
If I'm not mistaken the problem here is -lc on your link command line. You
don't need to link libc directly since it is already part of libcygwin,
which gets linked automatically.
Just a guess.
Colin.
PS. Question to GNU-Win32 crowd: Is this also true of libm... or not?
-- Colin Peters - colin@bird.fu.is.saga-u.ac.jp
-- Saga University Dept. of Information Science
-- http://www.fu.is.saga-u.ac.jp/~colin/index.html
-- http://www.geocities.com/Tokyo/Towers/6162/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".