This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: is libstdcv3 "supposed" to compile on mingw?
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: gcc at lists dot megacz dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 7 Feb 2002 07:22:11 +1100 (EST)
- Subject: 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: <86n0yoyh3p.fsf@megacz.com> <20020204183106.A6783@mediaone.net>
--------------------------------------------------------------------------------
>Craig Rodrigues <rodrigc@mediaone.net> writes:
>> which might have been solved by:
>> http://gcc.gnu.org/ml/libstdcﯽ듓03/msg00144.html
>> Does that solve your problem?
> It helps, but now I get this stuff:
<snip>
/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 <khan@nanotech.wisc.edu>
* configure.in: Add Mingw cross-compilation support.
* configure: Regenerate.
Index: libstdc++-v3/configure.in
===================================================================
RCS file:
/homes/khan/src/win32/cygwin/CVSROOT/gcc-3.0/libstdc++-v3/configure.in,v
retrieving revision 1.1.1.1
diff -u -3 -p -r1.1.1.1 configure.in
--- libstdc++-v3/configure.in 2001/06/18 19:17:34 1.1.1.1
+++ libstdc++-v3/configure.in 2001/06/19 03:14:37
@@ -178,6 +178,28 @@ if test -n "$with_cross_host"; then
# AC_FUNC_MMAP
AC_DEFINE(HAVE_MMAP)
;;
+ *-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])
+
+ GLIBCPP_CHECK_COMPILER_FEATURES
+ GLIBCPP_CHECK_LINKER_FEATURES
+ GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
+ GLIBCPP_CHECK_MATH_SUPPORT
+ GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
+ GLIBCPP_CHECK_WCHAR_T_SUPPORT
+ GLIBCPP_CHECK_STDLIB_SUPPORT
+
+ AC_TRY_COMPILE([
+#include <setjmp.h>
+], [sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);],
+[AC_DEFINE(HAVE_SIGSETJMP, 1, [Define if sigsetjmp is available. ])])
+
+ AC_FUNC_MMAP
+
+ os_include_dir="config/os/mingw"
+ ;;
*)
# We assume newlib. This lets us hard-code the functions we know
# we'll have.
http://greetings.yahoo.com.au - Yahoo! Greetings
- Send your Valentines love online.