[eigen] Re: linking error in mpreal test |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: [eigen] Re: linking error in mpreal test
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Sun, 17 Oct 2010 11:08:28 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=D6JKROraHyt5FZUpbN4hOPS7KcMd/5yWN6xnfpS42/Q=; b=qeCcPXVgXMfpvT/Rzo/RAtZmPcyyJChTsxj1T4EhU+QH4lumGNuuVkoIJ+sZ7zeqDu zHFLk2A1zVppFqWiGRFzLBrndKXzFMr595qTq9ELm/LO8YBorPD0ggQ4NuS3Kr8koXS1 4foKa74+3Fqf3IraEYYW4tD9mlGWe5xRBsueg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ryVcpvSg91tJWgZjMfqqJuuUp9VHGeT+wz9vkeWuzDUMrqohLZTHRMQMFuVPjEF4wG KjhQ+YaFceWIXNJb8p5QcUOvd9mr5FVyEBydlzEBz+K2SLHdEYNF5d5HDUwqPIQ1Iewx C9w0ryb2lBZV21UkqZtsf4zy0J0NbLqYGFWTU=
Fixed. Needed to link explicitly to GMP library. It seems that linking
is no longer "transitive" as it used to be:
http://fedoraproject.org/wiki/UnderstandingDSOLinkChange
Benoit
2010/9/27 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
> I'm getting this:
>
> Linking CXX executable mpreal_support
> /usr/bin/ld: CMakeFiles/mpreal_support.dir/mpreal_support.cpp.o:
> undefined reference to symbol '__gmpf_get_prec'
> /usr/bin/ld: note: '__gmpf_get_prec' is defined in DSO
> /usr/lib64/libgmp.so.3 so try adding it to the linker command line
> /usr/lib64/libgmp.so.3: could not read symbols: Invalid operation
>
> If you added this test, can you fix this?
>
> Benoit
>