JDK 8 Linking error on Fedora 16

David Bosschaert david.bosschaert at gmail.com
Thu Feb 23 19:31:56 UTC 2012


On 23 February 2012 16:26, Andrew Haley <aph at redhat.com> wrote:
> On 02/23/2012 04:23 PM, David Bosschaert wrote:
>> Could it be related to this message?
>>   Linking vm...
>>   /usr/bin/ld: cannot find -lstdc++
>>   collect2: ld returned 1 exit status
>> which is a bit odd given that I have the latest libstdc++ installed...
>
> Yes, that's it.  The problem is probably that it's trying to link
> statically with libstdc++ and you have no static version of that
> library.
>
> Andrew.
>

Turns out that I had to install the static version separately, the
following did the trick:
  yum install libstdc++-static

Thanks Andrew for this!

David



More information about the build-dev mailing list