qcc newbie

Hi.
I’m not able to compile my hello.cpp. It uses iostream.h.

I typed:
gcc -V gcc_ntox86 hello.cpp

gave this errmsg:
/usr/bin/ld: cannot open -lstdc++: No such file or directory
cc: /usr/bin/ld error 1

From the Knowledge Base Ref No. QNX.000010136, tried
qcc -V gcc_ntox86 -l /usr/lib/libstdc++.so hello.cpp

gave this msg:
/usr/bin/ld: cannot open /usr/lib/libstdc++.so: No such file or directory
cc: /usr/bin/ld error 1

Any assistance greatly appreciated. TIA.


Dzulbokhari

You need to install the C++ runtime, I think.

dzm <dzm@tm.net.my> wrote:

Hi.
I’m not able to compile my hello.cpp. It uses iostream.h.

I typed:
gcc -V gcc_ntox86 hello.cpp

gave this errmsg:
/usr/bin/ld: cannot open -lstdc++: No such file or directory
cc: /usr/bin/ld error 1

From the Knowledge Base Ref No. QNX.000010136, tried
qcc -V gcc_ntox86 -l /usr/lib/libstdc++.so hello.cpp

gave this msg:
/usr/bin/ld: cannot open /usr/lib/libstdc++.so: No such file or directory
cc: /usr/bin/ld error 1

Any assistance greatly appreciated. TIA.



Dzulbokhari


cburgess@qnx.com

I believe I have installed the C++ runtime. My package manager says that it
is active… or am I missing something?

Dzulbokhari

<cburgess@qnx.com> wrote in message news:90j4o4$692$2@nntp.qnx.com

You need to install the C++ runtime, I think.

dzm <> dzm@tm.net.my> > wrote:
Hi.
I’m not able to compile my hello.cpp. It uses iostream.h.

I typed:
gcc -V gcc_ntox86 hello.cpp

gave this errmsg:
/usr/bin/ld: cannot open -lstdc++: No such file or directory
cc: /usr/bin/ld error 1

From the Knowledge Base Ref No. QNX.000010136, tried
qcc -V gcc_ntox86 -l /usr/lib/libstdc++.so hello.cpp

gave this msg:
/usr/bin/ld: cannot open /usr/lib/libstdc++.so: No such file or
directory
cc: /usr/bin/ld error 1

Any assistance greatly appreciated. TIA.


Dzulbokhari


cburgess@qnx.com

I have managed to compile the .cpp file by deinstalling the Neutrino C++ Dev
& GNU C++ dev and then reinstalling FIRST the Neutrino C++ runtime then
after the GNU C++ (followed the approach in thread “Compiling C++ Programs”
in the qdn.public.qnxrealtimeplateform.beta by Kim Liu). Strange why this
thing happen.

Dzulbokhari

dzm <dzm@tm.net.my> wrote in message news:90jpqb$g3$1@inn.qnx.com

I believe I have installed the C++ runtime. My package manager says that
it
is active… or am I missing something?

Dzulbokhari

cburgess@qnx.com> > wrote in message news:90j4o4$692$> 2@nntp.qnx.com> …
You need to install the C++ runtime, I think.

dzm <> dzm@tm.net.my> > wrote:
Hi.
I’m not able to compile my hello.cpp. It uses iostream.h.

I typed:
gcc -V gcc_ntox86 hello.cpp

gave this errmsg:
/usr/bin/ld: cannot open -lstdc++: No such file or directory
cc: /usr/bin/ld error 1

From the Knowledge Base Ref No. QNX.000010136, tried
qcc -V gcc_ntox86 -l /usr/lib/libstdc++.so hello.cpp

gave this msg:
/usr/bin/ld: cannot open /usr/lib/libstdc++.so: No such file or
directory
cc: /usr/bin/ld error 1

Any assistance greatly appreciated. TIA.


Dzulbokhari


cburgess@qnx.com

I had some weird problems compiling on an X86 host until I installed the X86
target files for GCC. Open the package manager and then have it ‘view’ the
repository on your QNX RTP CD. Then you should look under GCC until you find
the option to install target files for X86. Check this box and then select
install…

Chris

dzm <dzm@tm.net.my> wrote in message
news:Voyager.001206001641.2412575E@localhost.localdomain

Hi.
I’m not able to compile my hello.cpp. It uses iostream.h.

I typed:
gcc -V gcc_ntox86 hello.cpp

gave this errmsg:
/usr/bin/ld: cannot open -lstdc++: No such file or directory
cc: /usr/bin/ld error 1

From the Knowledge Base Ref No. QNX.000010136, tried
qcc -V gcc_ntox86 -l /usr/lib/libstdc++.so hello.cpp

gave this msg:
/usr/bin/ld: cannot open /usr/lib/libstdc++.so: No such file or directory
cc: /usr/bin/ld error 1

Any assistance greatly appreciated. TIA.


Dzulbokhari