Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNX650: qcc (4.8.3) gives error while loading shared libraries (libstdc++.so.6): (3 Items)
   
QNX650: qcc (4.8.3) gives error while loading shared libraries (libstdc++.so.6)  
I'm trying to use the current qcc compiler (4.8.3) for QNX650 on Linux. So far it's just extracting and copy/pasting.

But when I try to build my libraries I get the error msg:

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

When I ldd on i486-pc-nto-qnx6.5.0-g++ then I get indeed

ldd /../qnx650/host/linux/x86/usr/bin/i486-pc-nto-qnx6.5.0-g++-4.8.3
	linux-gate.so.1 =>  (0xf7784000)
	libstdc++.so.6 => not found
	libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7721000)
	libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf7703000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7555000)
	/lib/ld-linux.so.2 (0xf7785000)

Apperently all the other libraries can be found.

What am I doing wrong and how can I resolve this?
Re: QNX650: qcc (4.8.3) gives error while loading shared libraries (libstdc++.so.6)  
If you're running it on a 64bit system, the toolchain is built against 
2bit libs? You might have to install the  libstdc++ i386 lib e.g.

sudo apt-get install lib32stdc++6 on ubuntu (or equivalent with other 
distros/package managers)

Regards,

Ryan Mansfield

On 15-06-26 03:03 PM, Jane McIllen wrote:
> I'm trying to use the current qcc compiler (4.8.3) for QNX650 on Linux. So far it's just extracting and copy/pasting.
>
> But when I try to build my libraries I get the error msg:
>
> 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
>
> When I ldd on i486-pc-nto-qnx6.5.0-g++ then I get indeed
>
> ldd /../qnx650/host/linux/x86/usr/bin/i486-pc-nto-qnx6.5.0-g++-4.8.3
> 	linux-gate.so.1 =>  (0xf7784000)
> 	libstdc++.so.6 => not found
> 	libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7721000)
> 	libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf7703000)
> 	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7555000)
> 	/lib/ld-linux.so.2 (0xf7785000)
>
> Apperently all the other libraries can be found.
>
> What am I doing wrong and how can I resolve this?
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post114030
> To cancel your subscription to this discussion, please e-mail general-toolchain-unsubscribe@community.qnx.com
>
Re: QNX650: qcc (4.8.3) gives error while loading shared libraries (libstdc++.so.6)  
.. good lord. I thought of everything but not that. Thanks a lot (also for this super quick reply), it's working now! I 
tested everything and somehow I suspected something like this but I really thought I did install the 32bit libs already.


Check's in the mail! ;)

Thanks again.