This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: is libstdcv3 "supposed" to compile on mingw?

Re: is libstdcv3 "supposed" to compile on mingw?
From: Adam Megacz <gcc at lists dot megacz dot com> 
To: gcc at gcc dot gnu dot org 
Date: 04 Feb 2002 18:53:20 -0800 
Subject: Re: is libstdcv3 "supposed" to compile on mingw? 
Organization: Myself 
References: <> <>


>Craig Rodrigues <> writes:
>> which might have been solved by:

>> Does that solve your problem?

> It helps, but now I get this stuff:


/home/megacz/mingw-gcj/bin/i686-pc-mingw32/libstdcv3/include/cmath: In 
   function `float std::acos(float)':
/home/megacz/mingw-gcj/bin/i686-pc-mingw32/libstdcv3/include/cmath:104: `::
   acosf' undeclared (first use here)
/home/megacz/mingw-gcj/bin/i686-pc-mingw32/libstdcv3/include/cmath: In 
   function `float std::asin(float)':
/home/megacz/mingw-gcj/bin/i686-pc-mingw32/libstdcv3/include/cmath:122: `::
   asinf' undeclared (first use here)

That looks like a cross-compilation problem.  mingw doesn't have those. On
native build configure discovers that they are missing, and libstdc++
builds fine.

Here is an old fix from Mumit Khan (for 3.0 release) that solved the
problem back in June. I think I sent this to you earlier. It will need
refreshing to current CVS.

2001-06-20  Mumit Khan  <>

	* Add Mingw cross-compilation support.
	* configure: Regenerate.

Index: libstdc++-v3/
RCS file:
retrieving revision
diff -u -3 -p -r1.1.1.1
--- libstdc++-v3/	2001/06/18 19:17:34
+++ libstdc++-v3/	2001/06/19 03:14:37
@@ -178,6 +178,28 @@ if test -n "$with_cross_host"; then
+    *-mingw*)
+	# Check for available headers.
+	AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h
+	machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h])
+#include <setjmp.h>
+], [sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);],
+[AC_DEFINE(HAVE_SIGSETJMP, 1, [Define if sigsetjmp is available.  ])])
+	os_include_dir="config/os/mingw"
+	;;
 	# We assume newlib.  This lets us hard-code the functions we know
 	# we'll have. - Yahoo! Greetings
- Send your Valentines love online.

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