Neutrino not catching exceptions

Anybody having problems using Neutrino to catch C++ exceptions?

I’ve got using qcc (Prelease 4 April 2000) on Windows 2000and whenever I
throw, the program exits!

I compile the same program with g++ (2.92.2-5) in Cygwin and run on my PC,
no problem.

I searched the QDN FAQs and didn’t find any information.

Any help would be greatly appreciated.

–Todd
hitt@battelle.org

g++ does not produce exception handling code by default. Use qcc or supply
options to g++ (don’t remember exact syntax).

  • igor

“Todd Hitt” <hitt@battelle.org> wrote in message
news:92g0lt$qc0$1@inn.qnx.com

Anybody having problems using Neutrino to catch C++ exceptions?

I’ve got using qcc (Prelease 4 April 2000) on Windows 2000and whenever I
throw, the program exits!

I compile the same program with g++ (2.92.2-5) in Cygwin and run on my PC,
no problem.

I searched the QDN FAQs and didn’t find any information.

Any help would be greatly appreciated.

–Todd
hitt@battelle.org

I have had problems with exceptions and GNU g++ on Linex. I found that one
version worked and one did not.

I’ll try to find which version works and which doesn’t.

I have not yet tried exceptions on RTP.


Todd Hitt <hitt@battelle.org> wrote in message
news:92g0lt$qc0$1@inn.qnx.com

Anybody having problems using Neutrino to catch C++ exceptions?

I’ve got using qcc (Prelease 4 April 2000) on Windows 2000and whenever I
throw, the program exits!

I compile the same program with g++ (2.92.2-5) in Cygwin and run on my PC,
no problem.

I searched the QDN FAQs and didn’t find any information.

Any help would be greatly appreciated.

–Todd
hitt@battelle.org

I posted a reply from another computer, but it didn’t make it. So here it
is again…

I am using qcc. I’ve found that if I pass -fsjlj-exceptions to the compiler
(using -Wc,-fsjlj-excpetions on the qcc command line), it works.
Using -f-exceptions doesn’t work. I found this in some communication on
old gcc compilers. Unfortunately, I’m not really sure what it does.

This all begs the question, when will QNX ship a new version of gcc targeted
to Neutrino? I know there is one ported by Colin Burgess in the public ftp
directory, but my quick attempt at installing it in my Cygwin environment
was not very successful. It’s been a lot of years since I did much with
gcc.

Running RTP as a host isn’t a good option for us. We all have Windows 2000
machines and do a lot of development there. The last version of RTP I tried
didn’t support SCSI anyway.

–Todd

“Igor Kovalenko” <kovalenko@home.com> wrote in message
news:92g2oj$rh3$1@inn.qnx.com

g++ does not produce exception handling code by default. Use qcc or supply
options to g++ (don’t remember exact syntax).

  • igor

“Todd Hitt” <> hitt@battelle.org> > wrote in message
news:92g0lt$qc0$> 1@inn.qnx.com> …
Anybody having problems using Neutrino to catch C++ exceptions?

I’ve got using qcc (Prelease 4 April 2000) on Windows 2000and whenever I
throw, the program exits!

I compile the same program with g++ (2.92.2-5) in Cygwin and run on my
PC,
no problem.

I searched the QDN FAQs and didn’t find any information.

Any help would be greatly appreciated.

–Todd
hitt@battelle.org

\

Todd Hitt wrote:

I posted a reply from another computer, but it didn’t make it. So here it
is again…

I am using qcc. I’ve found that if I pass -fsjlj-exceptions to the compiler
(using -Wc,-fsjlj-excpetions on the qcc command line), it works.
Using -f-exceptions doesn’t work. I found this in some communication on
old gcc compilers. Unfortunately, I’m not really sure what it does.

This all begs the question, when will QNX ship a new version of gcc targeted
to Neutrino? I know there is one ported by Colin Burgess in the public ftp
directory, but my quick attempt at installing it in my Cygwin environment
was not very successful. It’s been a lot of years since I did much with
gcc.

Running RTP as a host isn’t a good option for us. We all have Windows 2000
machines and do a lot of development there.

Then … you are the ideal costumer for the
CodeWorrior of Metroworks :slight_smile:

Have a look to http://www.metroworks.com

Armin

“Armin Steinhoff” <A-Steinhoff@web_.de> wrote in message
news:3A4DA81B.645332C5@web_.de…

Todd Hitt wrote:

I posted a reply from another computer, but it didn’t make it. So here
it
is again…

I am using qcc. I’ve found that if I pass -fsjlj-exceptions to the
compiler
(using -Wc,-fsjlj-excpetions on the qcc command line), it works.
Using -f-exceptions doesn’t work. I found this in some communication
on
old gcc compilers. Unfortunately, I’m not really sure what it does.

This all begs the question, when will QNX ship a new version of gcc
targeted
to Neutrino? I know there is one ported by Colin Burgess in the public
ftp
directory, but my quick attempt at installing it in my Cygwin
environment
was not very successful. It’s been a lot of years since I did much with
gcc.

Running RTP as a host isn’t a good option for us. We all have Windows
2000
machines and do a lot of development there.

Then … you are the ideal costumer for the
CodeWorrior of Metroworks > :slight_smile:

Or Phindows.

Have a look to > http://www.metroworks.com

Armin

Mario Charest wrote:

“Armin Steinhoff” <A-Steinhoff@web_.de> wrote in message
news:3A4DA81B.645332C5@web_.de…
[ clip …]
Running RTP as a host isn’t a good option for us. We all have Windows
2000 machines and do a lot of development there.

Then … you are the ideal costumer for the
CodeWorrior of Metroworks > :slight_smile:

Or Phindows.

Phindows as a replacement of an IDE ??

Armin

“Armin Steinhoff” <A-Steinhoff@web_.de> wrote in message
news:3A4E4A97.E40B5BE6@web_.de…

Mario Charest wrote:

“Armin Steinhoff” <A-Steinhoff@web_.de> wrote in message
news:3A4DA81B.645332C5@web_.de…
[ clip …]
Running RTP as a host isn’t a good option for us. We all have
Windows
2000 machines and do a lot of development there.

Then … you are the ideal costumer for the
CodeWorrior of Metroworks > :slight_smile:

Or Phindows.

Phindows as a replacement of an IDE ??

Come on Armin, you are smarter then that!

Armin

Hello,

The problem is that when you compile in separate phases, there is no
indication to qcc that you object files are C++ objects, and so it
doesn’t link in the runtime exception handling libraries.

You can indicate that you are linking C++ with the -lang-c++ option
to qcc, or by invoking qcc as QCC (or CC)

For more info please goto the Knowledge base at http://qdn.qnx.com,
by searching on “exceptions” you found the following issue:
http://support.qnx.com/support/bok/solution.qnx?10167

Regards,

Marcin

Todd Hitt <hitt@battelle.org> wrote:

Anybody having problems using Neutrino to catch C++ exceptions?

I’ve got using qcc (Prelease 4 April 2000) on Windows 2000and whenever I
throw, the program exits!

I compile the same program with g++ (2.92.2-5) in Cygwin and run on my PC,
no problem.

I searched the QDN FAQs and didn’t find any information.

Any help would be greatly appreciated.

–Todd
hitt@battelle.org

There is a major bug in the handling of exceptions in shared libraries which
is fixed by a new version of ld, which I have received from QNX support.

The version of ld in the “final” RTP is not the fixed version.

Ken Appleby

“Marcin Dzieciol” <marcind@qnx.com> wrote in message
news:92t83i$pjk$1@nntp.qnx.com

Hello,

The problem is that when you compile in separate phases, there is no
indication to qcc that you object files are C++ objects, and so it
doesn’t link in the runtime exception handling libraries.

You can indicate that you are linking C++ with the -lang-c++ option
to qcc, or by invoking qcc as QCC (or CC)

For more info please goto the Knowledge base at > http://qdn.qnx.com> ,
by searching on “exceptions” you found the following issue:
http://support.qnx.com/support/bok/solution.qnx?10167

Regards,

Marcin

Todd Hitt <> hitt@battelle.org> > wrote:
Anybody having problems using Neutrino to catch C++ exceptions?

I’ve got using qcc (Prelease 4 April 2000) on Windows 2000and whenever I
throw, the program exits!

I compile the same program with g++ (2.92.2-5) in Cygwin and run on my
PC,
no problem.

I searched the QDN FAQs and didn’t find any information.

Any help would be greatly appreciated.

–Todd
hitt@battelle.org