* Error: C++ Exception Handling on AIX 4.3 with gcc 3.0.1
@ 2002-09-03 1:11 Rene Wutschitz
2002-09-03 7:57 ` David Edelsohn
0 siblings, 1 reply; 2+ messages in thread
From: Rene Wutschitz @ 2002-09-03 1:11 UTC (permalink / raw)
To: gcc
[-- Attachment #1: Type: text/plain, Size: 701 bytes --]
> I tried to translate a Windows C++ Program to an AIX Server (4.3).
> Therefore i used the gcc 3.0.1.
>
> After the Compilation i started the Program.
> If an Exception (try, throw, catch) is thrown, i always get the
> Error Message:
>
> IOT/Abort trap (core dumped)
>
> On other Unix Server, the C++ Exception Handling is working well.
>
>
> <<main.cpp>> <<makefile>>
>
> Yours sincerely
>
> -----------------------------------------------------
> René Wutschitz
> Invaris Informationssysteme GmbH
> Invariscenter
> 7000 Eisenstadt
> Tel.: 02682 / 64000 - 534
> mailto:Rene.Wutschitz@Invaris.com
> -----------------------------------------------------
>
[-- Attachment #2: main.cpp --]
[-- Type: application/octet-stream, Size: 417 bytes --]
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char *argv[])
{
char puffer[10];
FILE *fp;
try
{
fp = fopen ("/usr/workdir/prblm_thrw/test.txt", "r+b");
if (fp)
{
fread (puffer, sizeof (char), 4, fp);
puffer[4] = 0;
printf (puffer);
}
else
{
throw;
}
}
catch (...)
{
printf ("\n!!!!!!!!!!!!!!!!!!!!!Error!!!!!!!!!!!!!!!!!\n");
}
return 1;
}
[-- Attachment #3: makefile --]
[-- Type: application/octet-stream, Size: 39 bytes --]
gcc -g2 main.cpp -o main -lstdc++
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Error: C++ Exception Handling on AIX 4.3 with gcc 3.0.1
2002-09-03 1:11 Error: C++ Exception Handling on AIX 4.3 with gcc 3.0.1 Rene Wutschitz
@ 2002-09-03 7:57 ` David Edelsohn
0 siblings, 0 replies; 2+ messages in thread
From: David Edelsohn @ 2002-09-03 7:57 UTC (permalink / raw)
To: Rene Wutschitz; +Cc: gcc
>>>>> Rene Wutschitz writes:
> I tried to translate a Windows C++ Program to an AIX Server (4.3).
> Therefore i used the gcc 3.0.1.
> After the Compilation i started the Program.
> If an Exception (try, throw, catch) is thrown, i always get the=20
> Error Message:
> IOT/Abort trap (core dumped)
> On other Unix Server, the C++ Exception Handling is working well.
GCC 3.2 is the current, recommend GCC release. GCC 3.1 and GCC
3.2 provide better AIX functionality -- especially C++ exception handling.
David
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-03 14:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-03 1:11 Error: C++ Exception Handling on AIX 4.3 with gcc 3.0.1 Rene Wutschitz
2002-09-03 7:57 ` David Edelsohn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).