delorie.com/archives/browse.cgi | search |
From: | colin AT bird DOT fu DOT is DOT saga-u DOT ac DOT jp (Colin Peters) |
Subject: | RE: strange linker messages |
10 May 1997 10:51:01 -0700 : | |
Approved: | cygnus DOT gnu-win32 AT cygnus DOT com |
Distribution: | cygnus |
Message-ID: | <01BC5D5E.8AFBD480.cygnus.gnu-win32@gbird0> |
Mime-Version: | 1.0 |
Original-To: | "'Carl H. Sayres'" <chs11 AT columbia DOT edu> |
Original-Cc: | "'GNU-Win32'" <gnu-win32 AT cygnus DOT com> |
Original-Sender: | owner-gnu-win32 AT cygnus DOT com |
Carl H. Sayres[SMTP:chs11 AT columbia DOT 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 AT bird DOT fu DOT is DOT saga-u DOT ac DOT 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 AT cygnus DOT com" with one line of text: "help".
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |