QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Error: exceptions must be enabled to use feature (use -xs switch) with Watcom 10.6 |
Ref. No. |
QNX.000000011 |
Category(ies) |
Development |
Issue |
The Watcom compiler returns the error:
"exceptions must be enabled to use feature (use -xs switch)"
We have tried: cc -c -xs ... , cc -xs -c ...., cc -o -xs ...
But nothing changes. What are we doing wrong?
|
Solution |
To pass options to the compiler using cc you must use the -W option followed by which part of the compiling process you want to pass it to:
c - c compiler C - c++ compiler l - linker
Since your option is for c++, your cc line should look like this:
cc -c -WC,-xs blah.c
See Also: Watcom Compiler & Tools Manual |
|