Whereas @Marged's answer seems to cover absolutely every important aspect of your question, I'd like to add that it is also possible to get more current versions of all GNU dev tools (like gcc, gdb or make..). This is officially provided by the QNX staff for "experimental use only", I guess1. But so far I've had only good experiences with them.
Check out QNX's updated Core Development Tools
(You need to register to the QNX community portal first to open the link)
You would then update your Linux dev system like that:
- Get files from here
- Extract files into a new folder
(do not extract and overwrite existing folder directly since it might be that symbolic links don't get updated)
- that should create the
host
and the target
folder
- Copy & paste the new files into the actual QNX folder and overwrite existing files
- Optionally: update the config default file's value to the new compiler version
- e.g.
/../qnx650/host/linux/x86/etc/qcc/gcc/default
- make sure 32bit libraries are installed (if not):
$ sudo apt-get install lib32stdc++6
- if not installed correctly errors like the following can occur
$ i486-pc-nto-qnx6.5.0-g++: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
1 Official text:"Stable versions of the Core Development Tools are included as part of QNX Momentics. You can download updated versions of these tools currently being developed through this project and benefit from their enhancements earlier!"
gcc
and because of this it depends which gcc is used by QNX 6.6. A quick search shows that QNX 6.6 is using gcc 4.7 (qnx.com/developers/articles/rel_5849_7.html) and here is a list of supported features of gcc 4.7: gcc.gnu.org/projects/cxx0x.html – Pollitt