binutils 20021107-2

Robert Collins rbcollins@cygwin.com
Sat Nov 9 00:40:00 GMT 2002


Hmm, a new ?bug? in binutils:

Linking a g++-2 compiled program, with a g++-2 compiled dll


(line breaks and blank lines added for clarity)

RobertC@LIFELESSAMD ~/src/barch/build
 make
/bin/bash ./libtool --mode=link g++-2  -g -O2   -o get-archive-name.exe
src/get-archive-name.o src/Archive.la
/usr/local/lib/libgetopt++.la -lm -lboost_regex

g++-2 -g -O2 -o get-archive-name.exe src/get-archive-name.o
src/.libs/Archive.a  -L/usr/lib -L/usr/lib/w32api
 -L/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10 -lgcc
-lgcc -lgcc -lgcc -lgcc -lgcc -lgcc -lgcc -lgcc -lgcc -lgcc -lgcc
/usr/local/lib /libgetopt++.dll.a -lstdc++-2 -lgcc -lcygwin 
-luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc -lboost_regex 
-L/usr/local/lib -L/usr/local/lib

/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/libstdc++-2.a(filebuf.o)(.text
+0x2a8):
filebuf.cc: multiple definition of `filebuf::~filebuf(void)'
/usr/local/lib/libgetopt++.dll.a(d000031.o)(.text+0x0): first defined
here
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/libstdc++-2.a(streambuf.o)
(.text+0x35c):streambuf.cc: multiple definition of `streambuf::sungetc(void)'
/usr/local/lib/libgetopt++.dll.a(d000485.o)(.text+0x0): first defined
here
collect2: ld returned 1 exit status
make: *** [get-archive-name.exe] Error 1

 
-- 
---
GPG key available at: http://users.bigpond.net.au/robertc/keys.txt.
---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://cygwin.com/pipermail/cygwin/attachments/20021109/a1f913d8/attachment.sig>


More information about the Cygwin mailing list