Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7726269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:10:17+00:00 2026-06-01T05:10:17+00:00

In kern/task.h, i found the declare: __BEGIN_DECLS extern task_t current_task(void); extern void task_reference(task_t task);

  • 0

In kern/task.h, i found the declare:

__BEGIN_DECLS
extern task_t current_task(void);
extern void task_reference(task_t task); 
__END_DECLS

But when i call the function current_task() in an iOS application.
I got the linker error like:

Undefined symbols for architecture i386 from:
"_current_task", referenced from:.... in xxx.o 
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status 

How to fix this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T05:10:18+00:00Added an answer on June 1, 2026 at 5:10 am

    A simple solution:
    Use mach_task_self() to replace the function current_task. Still could returns a pointer to the task structure associated with the currently running kernel thread.

    But i still want solve the problem above.:(

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was testing my iOS game and noticed a discrepancy between how much memory
I use the following code to add rows to my database : public void
I'm seeing this crash my iOS app after it's been running for 10 minutes:
I am new to titanium. Using a iPhone(Jailbroken)3GS with iOS 5.0.1. Titanium SDK 1.0.8
At openBSD we have the command: sudo sysctl kern.bufcachepercent This sets the percent of
I have removed all Input Managers that were added, but it's still happening. Here
Hey all.. exactly as it sounds. currently using @fontface, lettering.js, and kern.js to get
Looks like its related to NSURLConnection, but not sure how I can diagnose? Exception
I want to get to the children task (process) list of a process, here
I'm trying to interpret this crash log below, but I'm not sure if I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.