This is the mail archive of the
mailing list for the GCC project.
autoconf and gcc 3.0.1
- To: gcc at gcc dot gnu dot org
- Subject: autoconf and gcc 3.0.1
- From: Stefan Seefeld <seefeld at sympatico dot ca>
- Date: Mon, 20 Aug 2001 22:32:55 -0500
hi there, I just tried to configure and test-compile
an application with gcc 3.0.1 and run into the following
one of the autoconf macros inserts a declaration like
extern "C" void exit(int);
before user supplied code to test-compile a little
file to check for the availability of a given feature.
The code that I use starts with these three headers:
Compiling the above four lines with gcc 3.0.1 yields the
bash$ g++ -c ~/foo.cc
In file included from /home/stefan/foo.cc:4:
/usr/include/stdlib.h:520: declaration of `void exit(int) throw ()' throws
/home/stefan/foo.cc:1: than previous declaration `void exit(int)'
so I'm trying to understand which of the participating tools
cause the trouble.
Thanks for the help,
PS: I use autoconf version 2.13, and I do use the
AC_LANG_CPLUSPLUS macro just before running AC_TRY_RUN...