undefined reference to libquadmath routines

Syed Bilal Mehdi bilal.mehdi87@gmail.com
Thu Jun 9 04:52:00 GMT 2011


libgfortran was installed with gcc 4.6, I just needed to add the path to
LD_LIBRARY_PATH.

Thanks


Jonathan Wakely-4 wrote:
> 
> On 7 June 2011 19:40, Syed Bilal Mehdi wrote:
>>
>> And when I do add  -lgfortran as external library, the build goes
>> successful
>> but I get the following error during runtime
>>
>> ./test: error while loading shared libraries: libgfortran.so.3: cannot
>> open
>> shared object file: No such file or directory
> 
> See http://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.how_to_set_paths
> and the page it links to.
> 
> That is talking about the C++ runtime library but the same rules apply
> to the other GCC runtime libraries.
> 
>> Is it a bug again? or am I missing something this time? and why is
>> fortran
>> important here?
> 
> I think libquadmath was added for gfortran and I assume it has a
> dependency on it.
> 
> 

-- 
View this message in context: http://old.nabble.com/undefined-reference-to-libquadmath-routines-tp31790381p31804950.html
Sent from the gcc - Help mailing list archive at Nabble.com.



More information about the Gcc-help mailing list