roger@binky.UUCP (Roger Taranto) (07/04/89)
Is _assert in the shlib? If so, what's it's address in shlib.ifile, and where's it supposed to go, i.e., at what line? Thanks, -Roger roger@binky.UUCP ...!{pacbell,ucbcad,rtech}!binky!roger
kdb@chinet.chi.il.us (Karl Botts) (07/06/89)
In article <641@binky.UUCP> roger@binky.UUCP (Roger Taranto) writes: >Is _assert in the shlib? assert() is a macro.
roger@binky.uucp (Roger Taranto) (07/07/89)
In article <8871@chinet.chi.il.us> kdb@chinet.chi.il.us (Karl Botts) writes: >In article <641@binky.UUCP> roger@binky.UUCP (Roger Taranto) writes: >>Is _assert in the shlib? >assert() is a macro. I said _assert, not assert. If you look at the definition of assert() in <assert.h>, you'll see that it calls _assert. _assert is in /lib/libc.a; however, it is not in shlib.ifile. So, if you want to link a program that uses assert with the shared library, you have to extract assert.o from libc.a and link that in with your program. I was wondering if assert was in the shared library, and someone forgot to put it into the shlib.ifile, just like what happened with the daylight symbol. -Roger roger@binky.UUCP ...!{pacbell,ucbcad,rtech}!binky!roger