Re: AC_LANG_SOURCE(C++) and exit

2000-11-07 Thread Raja R Harinath
Hi, Pavel Roskin <[EMAIL PROTECTED]> writes: > Hello, Raja! > > AC_LANG_SOURCE(C++) uses > > > > extern "C" void exit (int); > > I remember we already discussed it. I believe that there are many issues > here. > > 1) "return" is rumored to be unportable/unreliable, but does it apply to > C+

Re: AC_LANG_SOURCE(C++) and exit

2000-11-07 Thread Pavel Roskin
Hello, Raja! > AC_LANG_SOURCE(C++) uses > > extern "C" void exit (int); I remember we already discussed it. I believe that there are many issues here. 1) "return" is rumored to be unportable/unreliable, but does it apply to C++? I doubt it. It's probably better to use "return" for C++. 2)

AC_LANG_SOURCE(C++) and exit

2000-11-02 Thread Raja R Harinath
Hi, AC_LANG_SOURCE(C++) uses extern "C" void exit (int); However, the latest libstdc++ will complain about this, since "exit" function is in the "_C_legacy" and/or "std" namespaces. I think this line shouldn't be in AC_LANG_SOURCE, but instead use #include - Hari -- Raja R Harinath --