[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Jul 29 11:01:04 1993 
Subject:Linking Sparc Compiler libraries 
From:Anthony Worrall 
Volume-ID:930729.01 

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