photon 1.13, watcom 10.6
Can I use exceptions in photon programs ?
I inserted -ws at PHABOPTS in the Makefile, but the compiler doesn’t recognize it.
I still get the compiler error E625 “exceptions must be enabled to use this feature (use -xs
switch)”
thanks for all help
Gerd
Gerd Hedtke <Gerd.Hedtke@t-online.de> wrote:
photon 1.13, watcom 10.6
Can I use exceptions in photon programs ?
Yes, but since the Photon library is C and has no idea how to handle C++
exceptions, you have to make sure that your callbacks don’t throw (or
let through) any exceptions. In other words, you can use exceptions,
provided that we’ll never see them. 
I inserted -ws at PHABOPTS in the Makefile, but the compiler doesn’t recognize it.
According to my docs, the option to enable exceptions is “-xs”, not
“-ws”. And since that’s an option to wpp386 while make uses cc, you
have to specify it as “-WC,-xs”.
I still get the compiler error E625 “exceptions must be enabled to use this feature (use -xs
switch)”
–
Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.