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 6852615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:24:53+00:00 2026-05-27T01:24:53+00:00

The kernel extension I am writing needs to include a framework (DirectIO), so I

  • 0

The kernel extension I am writing needs to include a framework (DirectIO), so I added the framework in the “Linked Libraries” section of the target properties. I then included it in the main source file.

The problem is, whenever I try to build it, it gives this error:

/Developer/usr/bin/ld_classic: incompatible flag -framework used (must specify "-dynamic" to be used)

I’m using XCode 3.2 on Snow Leopard, building for OSX i386. Is it possible to include a .framework in a .kext target?

  • 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-05-27T01:24:53+00:00Added an answer on May 27, 2026 at 1:24 am

    I don’t think you can link with a framework (other than Kernel.framework) or a dynamic library when building a kernel extension.

    Your code will run in supervisor mode. LD related stuff is basically not available in that stage.

    You may however link with other extensions (/System/Library/Extensions), using your kext’s plist file (OSBundleLibraries).

    See ‘Determine Kext Dependencies’ of the Kernel Extension Programming Topics documentation.

    There’s a lot of I/O related stuff in the available kernel extension. Maybe you’ll find there an equivalent.

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

Sidebar

Related Questions

In 10.5, Apple released a read-only kernel extension/filesystem to allow ZFS pools to be
I have previously written an application for Mac OSX that includes a kernel extension.
Greetings! I am working on a kernel extension driver for OSX. It is a
I have an IOKit-based kernel extension on Mac OS X, a subclass of IOService.
I'm working on a framework extension which handles dynamic injection using Ninject as the
We need to add a service to our website, I've added the MVC extension
Kernel threads do context switch at kernel level instead of process level. I am
I'm working on kernel design, and I've got some questions concerning paging. The basic
Given a linux kernel oops, how do you go about diagnosing the problem? In
Questions : What does the kernel do if you stick a shell-script into the

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.