[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: _AC_PROG_CXX_EXIT_DECLARATION: don't `#include <stdlib.h>'
From: |
Paul Eggert |
Subject: |
Re: _AC_PROG_CXX_EXIT_DECLARATION: don't `#include <stdlib.h>' |
Date: |
Wed, 23 Nov 2005 00:13:35 -0800 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
David Thompson <address@hidden> writes:
> I am having a recent problem with autoconf due to the following patch
> <http://lists.gnu.org/archive/html/autoconf-patches/2003-05/msg00072.html>.
> The
> problem is that I'm using Microsoft's Visual C++. It has a problem
> that it still doesn't find a valid match for 'exit' in the list given
> with . When stdlib.h was included, it did find the valid one. Its due
> to Microsoft's linkage issues.
I.e. the Microsoft compilers don't conform to the C standard, which
requires that you must be able to use standard functions by declaring
them (you needn't include the corresponding headers).
> Is there a solution other than to keep including stdlib.h?
Not that I can think of.
> Is there a way to make stdlib.h get included for tests that have the
> exit function added?
Automatically? I'd rather not go down that path. config.h should not
include any other file.
For particular tests, you can modify them to include stdlib.h.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: _AC_PROG_CXX_EXIT_DECLARATION: don't `#include <stdlib.h>',
Paul Eggert <=