Re: Problem with project builder to build kernel extension
Manged to reply to the sender only, and not to the list, so in case anyone else is interested, here it is: Quoting Calvin Hou <chou@ati.com>:
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.
There is no need to put "-dynamic" in. Do this: In the project window, "under" the files-tab, there is a little "target" icon at the left. It is checked for your source-files and frameworks. Uncheck it for the Kernel framework. Keeping the Kernel framework in your project is only needed if you want to be able to access its header-files quickly or search them using batch find. //Ivan _____________________________________________________________________ Inbox Chat: New Rooms & Java Chat now available! http://chat.inbox.lv _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
keinmensch@inbox.lv