Hi David, * David Thompson wrote on Thu, Jan 05, 2006 at 11:52:13PM CET: > That didn't fix it for me, but if I used the following definition--it does. > > 'extern "C" __declspec(dllimport) void exit (int);' \ OK. I have applied the patch below. Cheers, Ralf 2006-01-11 David Thompson <dthompsn@xxxxxxxxxxxxxxxx> * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit' declaration that works for MSVC. Index: lib/autoconf/c.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/c.m4,v retrieving revision 1.208 diff -u -r1.208 c.m4 --- lib/autoconf/c.m4 1 Nov 2005 07:26:52 -0000 1.208 +++ lib/autoconf/c.m4 11 Jan 2006 08:16:33 -0000 @@ -1,6 +1,7 @@ # This file is part of Autoconf. -*- Autoconf -*- # Programming languages support. -# Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software +# Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -783,6 +784,7 @@ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ + 'extern "C" __declspec(dllimport) void exit (int);' \ 'void exit (int);' do _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$ac_declaration _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf