Re: STL in Kexts
Re: STL in Kexts
- Subject: Re: STL in Kexts
- From: Quinn <email@hidden>
- Date: Mon, 12 Jul 2004 14:07:25 +0100
At 7:25 -0700 30/6/04, Krishna Monian wrote:
Templates (my own templated classes) seem to work fine
with kexts. However when I try to use the STL I get
the following errors in XCode.
/usr/lib/gcc/darwin/3.3/libstdc++.a(new_opv.o)
incompatible, file contains unsupported type of
section (__TEXT,__picsymbolstub1) in load command
0(must specify "-dy
[...]
I am guessing it is saying I need to add the -dynamic
flag. However, that doesn't seem to help.
This is because you're trying to link a user space library
(libstdc++.a) into a kernel program. That doesn't work.
Is there any equivalent of the STL "list" or "slist"
in libkern?
No. As Dean said:
At 18:04 -0700 29/6/04, Dean Reece wrote:
Sorry, but templates and STL are not supported in the kernel.
You may be able to make this work by compiling your own version of
STL (with the same options you use to compile your KEXT) but it's not
something that we support.
libkern does containing various container classes (OSArray,
OSDictionary), some of which might provide enough functionality for
your needs. However, these classes are not in any way like STL.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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.