Dear Sir or Madam:
I am working with Watcom C/C++ compiler ver 10.6 and QNX 4.25. Our
software development is going totally towards C++. At the start of a
project in C++, I would like to know the following:
I’ll answer where I can.
- The length to which the Watcom C/C++ compiler 10.6 supports C++.
Which of the following features it supports?
a. templates
b. STL
c. ATL
d. Exception Handling
a. 10.6 has templates. They are not standard templates (i.e. they are
pre ISO).
b. We have a hacked port of a pre-standard version of the STL - this
isn’t really useful IMO - if it ain’t exactly standard there’s not much
point, and since there never will be a standard compiler for QNX4, it’s
not like your gaining by coding toward the future or anything. It does
have it’s own templated container classes which are slightly amusing.
c. - sorry I don’t know what ATL stands for.
d. 10.6 does support exception handling.
- Does it support draft version of C++ or standard version?
I don’t think it is even a draft version (it’s a tweenie I believe). It
definately isn’t standard.
- Is there Watcom compiler version available which will support
standard C++ with QNX 4.25?
No, in fact I don’t believe there is a generally available fully
compliant ISO/IEC 14882-1998 compiler available for any platform, if
you know of one, please provide a pointer (I do expect there should be
one soon, since the standard has been approved for a full 3 years now).
- Is there Watcom compiler version available which will support
standard C++ with QNX Neutrino?
No, on 6.1 (Neutrino) there is g++ which comes closer to the standard,
but only 2.95 is currently available not 3.0 which is better at
standards compliance (although it has other problems I’m told).
- Do you have a language reference manual for Watcom C/C++ compiler?
No, I don’t, and I’m pretty sure Watcom never made one (a lot of effort
to produce one when your chasing a moving target). They used to ship
“The C++ programming language” by Bjarn Stroustrup in their docset.
Having said all these bad (but true) things about Watcom 10.6/C++, in
its defence I will say that although it isn’t C++, it is a very fine
compiler of the language known as “Watcom 10.6/C++” (it wouldn’t be too
much of a stretch to say it is the best compiler of Watcom 10.6/C++
. It is very fast at compiling, and produces efficient code.
Now having said that I will also say, that one should not be
starting any new projects in QNX 4.25 at this late date. QSSL is going
to stop driver support on QNX 4.2x next year. QNX 6.1 has much brighter
prospects wrt getting a ISO/IEC 14882-1998 compiler pretty soon, and it
has a reasonably usable (i.e. 97% ISO/IEC) compiler right now.
Rennie