Re: Problem with project builder to build kernel extension
Re: Problem with project builder to build kernel extension
- Subject: Re: Problem with project builder to build kernel extension
- From: "Justin C. Walker" <email@hidden>
- Date: Tue, 21 Oct 2003 09:50:03 -0700
On Tuesday, October 21, 2003, at 09:16 AM, Calvin Hou wrote:
Hi All,
I created a very simple IOKit Driver. After I added framework
"Kernel.framework", compile it, it always reports:
"incompatible flag -framework used (must specify "-dynamic" to be
used)"
Then I put "-dynamic" into linker flags, but doesn't work.
What does this mean? How to solve it?
I think you are confused. The "Kernel.framework" holds only kernel
header files, nothing else. The kernel and its extensions are all
"static" entities, so using "-dynamic" will not work well. Perhaps you
are using other frameworks? If so, don't. The "Framework" mechanism
is for user-land applications, not kernel entities.
Without a bit more information, it's not easy to figure out what is
going wrong.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | When LuteFisk is outlawed
| Only outlaws will have
| LuteFisk
*--------------------------------------*-------------------------------*
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.