Having linking problems with atomic_inc(), atomic_dec_and_test() in user app, help!

Michael Schmitz schmitz at opal.biophys.uni-duesseldorf.de
Sat Jan 5 01:18:16 EST 2002


> Also, what does "relocation truncated to fit: R_PPC_REL24 atomic_inc(atomic_t
> *)" mean?

About as much as 'unresolved external reference'. atomic_inc isn't defined
in the scope of your code. Look at the kernel headers; it might be inside
#ifdef __KRENEL__ (actually it is).

Why do you think you need to use atomic_inc directly instead of some
pthreads wrapper?

	Michael

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list