This is the mail archive of the cygwin@sourceware.cygnus.com 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]

RE: strange linker messages


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


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