Originally posted by: DennisRussell
I am using the floor function in math.h. I am linking with libm.a but I am getting the following:
ld: 0711-317 ERROR: Undefined symbol: .__floor
ld: 0711-317 ERROR: Undefined symbol: .__ceil
I linked the code with the -bloadmap:PARM option and I see the ld using the
libm.a being used:
(ld): lib /usr/lib/libdl.a
(ld): lib /usr/lib/libc.a
(ld): lib /usr/lib/libpthreads.a
(ld): lib /usr/lib/libodm.a
(ld): lib /usr/lib/libm.a
(ld): lib /usr/lib/libbsd_r.a
(ld): lib /usr/lib/libld.a
(ld): lib /usr/lib/libperfstat.a
(ld): lib /usr/lib/libnsl.a
When I do a nm /usr/lib/libm.a, I see the functions defined in the library.
This code was compiled against AIX5.2L and there were no problems. There were no changes to the code. We are migrating from AIX5.2 to AIX5.3.
Has anybody experienced an issue like this? What other libraries do I need? Does anybody know why I am getting this error?
Thank-you,