You'll have to show the bits of code in question for us to help much. No program ought to be calling cthread_init. Initialization is dealt with just by linking in -lthreads.