[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Excluding the libstdc++.so.5 library during runtime.
From: |
Stephen Gross |
Subject: |
Re: Excluding the libstdc++.so.5 library during runtime. |
Date: |
Wed, 08 Oct 2003 14:26:17 -0400 (EDT) |
> We recently upgraded our GNU compiler to 3.3.1. One of our applications
> used to use the Sun Workshop compiler and is being converted to use GNU.
> However, we have run into a problem. After building and linking the
> executables, using g++, the executables fail to run in our lab due to the
> libstdc++.so.5 library not being available.
>
> Is there a way we can build our applications to include the functionality
> of the shared library or exclude its use, so we do not have to have the
> library installed?
You should explicitly link the static library libstdc++.a. You can
probably do this with one of the compile option... The -Bstatic is
probably helpful.
--Steve