I recently posted a question about a problem I was having linking
the NAG library and the Fortran Sparc Compilrer version 1.0 in to poplog.
It appears that the problem is caused by the maths library (libm.a) which
comes with the Sparc Compiler. This library defines a number of symbols not in
the default maths library (/usr/lib/libm.a) but which are define inside Poplog.
Julian Clinton suggested adding "popexlinkbase" to the external load try and stop
the linker from extracting the symbols from the maths library.
lvars popexlinkbase = systranslate('popexlinkbase');
unless isstring(popexlinkbase) then
mishap(0, 'Undefined symbol: popexlinkbase');
endunless;
external load nag_e04ccf;
#_<popexlinkbase>_# '-lnag' '-lF77' '-lm'
endexternal;
Unfortunately this does not work.
The work around I am using at the moment is to replace '-lm' with '/usr/lib/libm.a'
but this means that I do not get any enhancments in the maths library.
Has any one had a similar problem with the GNU libraries?
Anthony.Worrall@Reading.ac.uk
|