/usr/bin/ld: Cannot Find -lstdc++_nonshared (Doc ID 1328359.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle XML Developers Kit - Version 11.2.0.1 and later
Precompilers - Version 10.2.0.1 to 11.2.0.1 [Release 10.2 to 11.2]
Linux x86-64
***Checked for relevance on 28th Mar 2016***

Symptoms

When building a C++ XDK or Pro*C application on any of these Linux platforms (Linux x86-64 with SuSE Linux Enterprise Server 10, SuSE Linux Enterprise Server 11, and Red Hat Enterprise Linux 5) may produce the following error during compilation.

/usr/bin/ld: cannot find -lstdc++_nonshared


This bug is not only specific to Linux but specific to certain versions as listed above.

Although the Oracle documentation states to "Contact your operating system vendor.", it is unclear what it means.

3.4 C++ XDK Demos and Pro*C++ Static Demos Linking Error
 
The C++ XDK demos and Pro*C++ Static demos fail to link with the -lstdc++  library giving the following error on Linux x86-64 with SuSE Linux Enterprise Server 10, SuSE Linux Enterprise Server 11, and Red Hat Enterprise Linux 5:

 /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../..
 /x86_64-suse-linux/bin/ld: cannot find -lstdc++_nonshared
 
Workaround:
Contact your operating system vendor.
 
This issue is tracked with Oracle bug 8396301.




Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms