QNX 6.3.0. Compiling error after switching to gcc 3.3.1

Hi, guys

uname -a

I need to switch from gcc/g++ 2.95.3 to gcc/g++ 3.3.1 version.


#include <cstdlib>

using namespace std;

int main(int argc, char** argv) {
    return 0;

That’s how I do it:


g++ main.cpp -o main (compiles without any problems)


g++ main.cpp -o main

How can I solve this problem?

find /usr -type f -name cstdlib

Thanks a lot.

I would try the following:

cc -V3.3.5,gcc_ntox86 -set-default

This worked under 6.3.2.

Thanks for your answer but I can’t use cc instead of gcc. Actually I’m trying to set up remote compling in netbeans 7.3.1. The reason why I’m trying to switch from 2.95.3 to 3.3.1 is next error (on 2.95.3 version):

g++ -v -specs=/usr/qnx630/host/qnx6/x86/usr/lib/gcc-lib/i386-pc-nto-qnx6.3.0/3.3.1/specs main.cpp -o main

What the QNX_TARGET_TAG is ?

Thanks for the replym but I can only use gcc/g++ compilers.

cc is not a compiler. It is a wrapper that calls gcc/g++.