Hi all,
Those of you developing in C++ may be interested to hear that there is now an unsupported (by QSSL) Standard C++ library available for QNXRTP, which may be useful in keeping you going until the Dinkumware C++ libraries are released for QNXRTP.
The library is STLport, from www.stlport.org, and the version you need is the recently released 4.1 beta 4 (or later).
To get it up and running is simple. First of all you’ll need a version of g++ called c++:
su
ln -s /usr/bin/g++ /usr/bin/c++
Now, unpack the tar, change to the src directory, and type:
make -fgcc.mak
A few minutes later the compile should successfully complete.
Finally, you need to copy the contents of the libs dir to perhaps /usr/local/lib and the stlport include directory (called stlport) to /usr/local/include/stlport
To compile using the ISO C++ libraries, try:
g++ -I/usr/local/include/stlport -L/usr/local/lib -lstlport_gcc file.cpp
perhaps with the traditional test file:
#include
int main()
{
std::cout << “Hello world!” << std::endl;
}
Hope someone finds it useful, even in the diehard C coder QNX world (I am successfully using it in a commercial project). With it you should be able to compile almost all ISO C++ code (the g++ compiler is close to the ISO/ANSI C++ standard, and the STLport library is very close, although perhaps not as close as Dinkumware). This will be useful if you are trying to work through an up-to-date/good C++ text book such as “Accelerated C++” by Koenig and Moo.
Oh, and if it trashes your machine don’t blame me…
Tom