Re: More exit() troubles - the answer

2001-01-22 Thread Akim Demaille
> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes: Alexandre> My reasoning is that, if it can be #included twice without Alexandre> error, it can't hurt. I can't think of any problem with Alexandre> it, can you? Systems usually have more imagination than you and I have :) Alexand

Re: More exit() troubles - the answer

2001-01-22 Thread Alexandre Oliva
On Jan 22, 2001, Akim Demaille <[EMAIL PROTECTED]> wrote: >> "Lars" == Lars J Aas <[EMAIL PROTECTED]> writes: Lars> * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): First try no Lars> declaration, then '#include ', before trying the Lars> explicit declarations. > If Alexandre thinks it is OK tha

Re: More exit() troubles - the answer

2001-01-22 Thread Akim Demaille
> "Lars" == Lars J Aas <[EMAIL PROTECTED]> writes: Lars> * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): First try no Lars> declaration, then '#include ', before trying the Lars> explicit declarations. If Alexandre thinks it is OK that stdlib.h be *always* included in *all the tests*, then it

Re: More exit() troubles - the answer

2001-01-22 Thread Lars J. Aas
On Mon, Jan 22, 2001 at 01:45:13PM +0100, Lars J. Aas wrote: : 2001-01-22 Lars J. Aas <[EMAIL PROTECTED]> : : * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): First try no declaration, : then '#include ', before trying the explicit declarations. + Suggested by Alexandre Oliva. (

Re: More exit() troubles - the answer

2001-01-22 Thread Lars J. Aas
On Mon, Jan 22, 2001 at 11:08:59AM +0100, Akim Demaille wrote: : > "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes: : : Lars> There's "#pragma once" and an ifndef wrapper in it ASAIR, so : Lars> that should work fine. Using '' first in the list of : Lars> ac_declaration's didn't tr

Re: More exit() troubles - the answer

2001-01-22 Thread Akim Demaille
> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes: Lars> There's "#pragma once" and an ifndef wrapper in it ASAIR, so Lars> that should work fine. Using '' first in the list of Lars> ac_declaration's didn't trigger though, probably for some other Lars> reason. Alexandre> It should

Re: More exit() troubles - the answer

2001-01-19 Thread Alexandre Oliva
On Jan 19, 2001, "Lars J. Aas" <[EMAIL PROTECTED]> wrote: > There's "#pragma once" and an ifndef wrapper in it ASAIR, so that should > work fine. Using '' first in the list of ac_declaration's didn't trigger > though, probably for some other reason. It should work for C and older versions of g+

Re: More exit() troubles - the answer

2001-01-19 Thread Lars J. Aas
On Fri, Jan 19, 2001 at 06:56:36PM -0200, Alexandre Oliva wrote: : On Jan 19, 2001, "Lars J. Aas" <[EMAIL PROTECTED]> wrote: : : > On Fri, Jan 19, 2001 at 06:30:48PM -0200, Alexandre Oliva wrote: : > : I'd rather avoid this, if I could help it. Didn't `#include ' : > : work as an ac_declaration

Re: More exit() troubles - the answer

2001-01-19 Thread Alexandre Oliva
On Jan 19, 2001, "Lars J. Aas" <[EMAIL PROTECTED]> wrote: > On Fri, Jan 19, 2001 at 06:30:48PM -0200, Alexandre Oliva wrote: > : I'd rather avoid this, if I could help it. Didn't `#include ' > : work as an ac_declaration of exit? > Sure. And couldn't it be #included twice? Didn't it fix the

Re: More exit() troubles - the answer

2001-01-19 Thread Lars J. Aas
On Fri, Jan 19, 2001 at 06:30:48PM -0200, Alexandre Oliva wrote: : On Jan 19, 2001, "Lars J. Aas" <[EMAIL PROTECTED]> wrote: : : > * aclang.m4 (_AC_GROG_CXX_EXIT_DECLARATION): Take care of : > the _CRTIMP business with libc declarations with MS Visual C++. : : This is horrible :-( : : I

Re: More exit() troubles - the answer

2001-01-19 Thread Alexandre Oliva
On Jan 19, 2001, "Lars J. Aas" <[EMAIL PROTECTED]> wrote: > * aclang.m4 (_AC_GROG_CXX_EXIT_DECLARATION): Take care of > the _CRTIMP business with libc declarations with MS Visual C++. This is horrible :-( I'd rather avoid this, if I could help it. Didn't `#include ' work as an ac_

Re: More exit() troubles - the answer

2001-01-19 Thread Lars J. Aas
On Fri, Jan 19, 2001 at 07:35:04PM +0100, [EMAIL PROTECTED] wrote: : Thanks Lars, it's great! Here's a patch: 2000-01-19 Lars J. Aas <[EMAIL PROTECTED]> * aclang.m4 (_AC_GROG_CXX_EXIT_DECLARATION): Take care of the _CRTIMP business with libc declarations with MS Visual C++. I

Re: More exit() troubles - the answer

2001-01-19 Thread akim
Thanks Lars, it's great!

Re: More exit() troubles - the answer

2001-01-19 Thread Lars J. Aas
Upon closer inspection I found out that I was compiling with no special options, while the person having problems was using a linker option "/MDd". /MD is used to link against the msvcrt library, and /MDd to link against the debug version of that library. *rt is probably a DLL (run-time) and the