[net.micro.atari16] libf problems

knnngt@ukma.UUCP (Alan Kennington) (05/12/86)

	The problem with the linker not being able to find the routines
ffpadd and ffpsub is now solved. And this is what I found:
	The linker goes through the library finding undefined symbols,
including only the object code necessary for the undefined symbols
not yet found during the search. Now my program was so simple that
it did not need fpadd or fpsub, which therefore do not need to call
ffpadd and ffpsub. But fplog calls ffplog, which comes AFTER ffpsub
and ffpadd, and therefore calls them unsuccessfully. The order of the
relevant files is:
fpadd.o
fplog.o
fpsub.o
ffpadd.o
ffplog.o
(I think ffpadd.o contains the entry point ffpsub also.)
Thus the problem seems to be simply that the library has the object files
in the wrong order. I tested this conjecture by including a floating
point add and subtract in my program. And ....It worked perfectly!!!
Following is a list of contents of the new libf downloaded from Compuserve:

rw-rw-rw- 0/0    552 xdoprtfp.o
rw-rw-rw- 0/0   1736 ftoa.o
rw-rw-rw- 0/0   1708 etoa.o
rw-rw-rw- 0/0   2288 atof.o
rw-rw-rw- 0/0    720 ffptof.o
rw-rw-rw- 0/0    896 ftoffp.o
rw-rw-rw- 0/0    152 fabs.o
rw-rw-rw- 0/0    372 floor.o
rw-rw-rw- 0/0    372 ceil.o
rw-rw-rw- 0/0    632 fmod.o
rw-rw-rw- 0/0    148 fpadd.o
rw-rw-rw- 0/0    144 fpcmp.o
rw-rw-rw- 0/0    148 fpdiv.o
rw-rw-rw- 0/0    140 fpcos.o
rw-rw-rw- 0/0    148 fppwr.o
rw-rw-rw- 0/0    140 fpsin.o
rw-rw-rw- 0/0    140 fpsqrt.o
rw-rw-rw- 0/0    140 fpexp.o
rw-rw-rw- 0/0    140 fplog.o
rw-rw-rw- 0/0    584 ltof.o
rw-rw-rw- 0/0    608 ftol.o
rw-rw-rw- 0/0    176 fpmul.o
rw-rw-rw- 0/0    140 fpneg.o
rw-rw-rw- 0/0    148 fpsub.o
rw-rw-rw- 0/0    132 atan.o
rw-rw-rw- 0/0    132 sinh.o
rw-rw-rw- 0/0    132 cosh.o
rw-rw-rw- 0/0    132 tanh.o
rw-rw-rw- 0/0    558 ffpatan.o
rw-rw-rw- 0/0    610 ffpsinh.o
rw-rw-rw- 0/0    156 ffpcmp.o
rw-rw-rw- 0/0    196 ffppwr.o
rw-rw-rw- 0/0   1344 ffpsin.o
rw-rw-rw- 0/0    548 ffpsqrt.o
rw-rw-rw- 0/0    116 ffpabs.o
rw-rw-rw- 0/0    752 ffpadd.o
rw-rw-rw- 0/0    496 ffpdiv.o
rw-rw-rw- 0/0    848 ffpexp.o
rw-rw-rw- 0/0    740 ffplog.o
rw-rw-rw- 0/0    396 ffpmul2.o
rw-rw-rw- 0/0    260 ffptheta.o
rw-rw-rw- 0/0    208 ffptnorm.o
rw-rw-rw- 0/0    236 ffphthet.o
rw-rw-rw- 0/0    180 ffpcpyrt.o
rw-rw-rw- 0/0    528 atoi.o

Thanks for all the answers to my question. (I didn't get any because everyone
has gone OS already. Remember to pack your bullet-proof vest, radiation
counter and lunch-box.)   .....Alan Kennington.