Question about C++ package.

Russel Winder russel at winder.org.uk
Thu Jul 9 18:28:11 UTC 2015


On Thu, 2015-07-09 at 17:22 +0200, Jakub Jelinek wrote:
> On Thu, Jul 09, 2015 at 04:18:19PM +0100, Russel Winder wrote:
> > 
[…]
> /usr/lib/gcc/x86_64-redhat-linux/5.1.1/libstdc++.a is just a symlink.
> You need to install libstdc++-static package if you want to link 
> statically
> against -lstdc++ (similarly to pretty much any other library package in 
> Fedora).
> 
> If you install libstdc++-static.x86_64, you'll be able to link against 64
> -bit
> libstdc++.a, if you install libstdc++-static.i686, you'll be able to link
> against 32-bit libstdc++.a (with -m32), if you install both, then against
> both.
> As always, static linking is not recommended (which is why you need the
> extra *-static packages in Fedora).

So there is a bug here, that the 32-bit static package gets installed with
the shared objected package?

I installed the package you suggested which does indeed have the needed
archive. Thus I was missing something for 64-bit, but I believe there is
inconsistency regarding the 32-bit archive.

-- 
Russel.
=============================================================================
Dr Russel Winder     t:+44 20 7585 2200   voip:sip:
russel.winder at ekiga.net
41 Buckmaster Road   m:+44 7770 465 077   xmpp:russel at winder.org.uk
London SW11 1EN, UK  w: www.russel.org.uk skype:russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.fedoraproject.org/pipermail/test/attachments/20150709/c00d075b/attachment.sig>


More information about the test mailing list