make check and C++ exceptions

2003-09-03 Thread Steve Hutton
Make check succeeds (as expected) when my test program
returns 0, but it fails (not what I expected) when the same
test program has thrown and caught a C++ exception.

For example, only the first of the following two programs
passes make check, but a simple bash script verifies that
both programs exit with status 0

$ more return0nothrow.cpp
int main()
{
  return 0;
}

$ more return0throw.cpp
#include 
#include 

void throwError()
{
   throw std::runtime_error("hello");
}

int main()
{
  try
{
  throwError();
}
  catch(std::exception& e)
{
  std::cout<<"cought: "<

make check and C++ exceptions

2003-09-03 Thread Steve Hutton
Make check succeeds (as expected) when my test program
returns 0, but it fails (not what I expected) when the same
test program has thrown and caught a C++ exception.

For example, only the first of the following two programs
passes make check, but a simple bash script verifies that
both programs exit with status 0

$ more return0nothrow.cpp
int main()
{
  return 0;
}

$ more return0throw.cpp
#include 
#include 

void throwError()
{
   throw std::runtime_error("hello");
}

int main()
{
  try
{
  throwError();
}
  catch(std::exception& e)
{
  std::cout<<"cought: "<

Re: Tutorial ?

2003-10-12 Thread Steve Hutton
On Friday 10 October 2003 12:58 pm, [EMAIL PROTECTED] wrote:
> Hi to all,
>
> can anyone forward a link to good automake and autoconf tutorials ?
> I need any information about it urgently.

While neither one is complete and up to date on its own, I found it valuable
to use these two in combination:

http://autotoolset.sourceforge.net/tutorial.html
http://sources.redhat.com/autobook/

Steve






Re: How one could integrate Automake in an IDE ?

2003-10-12 Thread Steve Hutton
On Wednesday 01 October 2003 12:20 pm, Alain Magloire wrote:
> Bonjour
>
>   First, I'm not subscribe to the list ... please CC, thanks.
>
> Question:
>   I'm curious on how the autoXXX tools like automake etc .. can
> be integrated nicely part of an IDE.  So far what I've seen
> is not suitable enough ...
>   If you know of a good integration, please send the URL.

How about KDevelop - http://kdevelop.org

Steve