Xerces-C: two issues with gcc4/cygwin-1.7

Dave Korn dave.korn.cygwin@googlemail.com
Mon May 4 14:36:00 GMT 2009

Charles Wilson wrote:

> [39037](sec  3)(fl 0x00)(ty   0)(scl   2) (nx 0) 0x0005f780 typeinfo
> name for xercesc_3_0::XMLException
> [39038](sec  3)(fl 0x00)(ty   0)(scl   2) (nx 0) 0x0005c7f0 typeinfo for
> xercesc_3_0::XMLException

> 00000000 R typeinfo for xercesc_3_0::XMLException

  So, from that: the typeinfo is clearly in the original .o file, and it's a
public symbol in .rdata that really ought to be exported - if auto-export is
in operation.

  The next step is to manually re-run the final link command that you posted

g++ -shared -nostdlib /usr/lib/gcc/i686-pc-cygwin/4.3.2/crtbegin.o
.libs/libxerces-c.la.lnkscript  -L/usr/lib /usr/lib/libcurl.dll.a
/usr/lib/libssh2.dll.a -lssl -lcrypto -lz -licuuc -licudata
/usr/lib/gcc/i686-pc-cygwin/4.3.2/libstdc++.dll.a -lgcc_s -lgcc_s
-lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc_s -lgcc_s
/usr/lib/gcc/i686-pc-cygwin/4.3.2/crtend.o    -o
.libs/cygxerces-c-3-0.dll -Wl,--enable-auto-image-base -Xlinker
--out-implib -Xlinker .libs/libxerces-c.dll.a

adding "-Wl,--enable-extra-pe-debug", which should show us a bit more about
what ld thinks it is doing when it decides whether or not to export all the


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/

More information about the Cygwin mailing list