linux->mingw cross and latest gcc snapshot

Benjamin Kosnik bkoz@redhat.com
Wed Mar 14 12:59:00 GMT 2001


> It works when I link ctype_base.h, ctype_inline.h, ctype_noninline.h,
> os_defines.h from generic. Where do these symbols come from for cygwin?
> And shouldn't they also be defined for mingw?

they depend on the underlying "C" library of the target.

Here, try this patch and see if it works. This is how you should add 
support, anyway:

Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/configure.in,v
retrieving revision 1.55
diff -c -p -r1.55 configure.in
*** configure.in	2001/02/26 21:47:59	1.55
--- configure.in	2001/03/14 20:55:49
*************** if test -n "$with_cross_host"; then
*** 176,181 ****
--- 176,186 ----
  	# AC_FUNC_MMAP
  	AC_DEFINE(HAVE_MMAP)
  	;;
+ 
+     *-mingw*)
+ 	os_include_dir="config/os/generic"
+ 
+ 	;;
      *)
  	# We assume newlib.  This lets us hard-code the functions we know
  	# we'll have.



More information about the Libstdc++ mailing list