kern/locks.h

2009-04-07 Thread Barry Fawthrop
Greetings I'm working on a project for the iPhone original it was c++ based and has the following lines #include kern/locks.h #include kern/thread.h It comes back with No such file or directory Yet I have Library/Frameworks/Kernel.framework/Versions/A/Headers/kern/locks.h Library/Frameworks

Re: kern/locks.h

2009-04-07 Thread Kyle Sluder
1) If you want to use a header inside a framework, you need to tell GCC to use that framework. This means either passing the -framework flag to GCC, or adding the framework to your Link Binary with Libraries build stage in Xcode. 2) This isn't Cocoa related. You should probably be asking this

Re: kern/locks.h

2009-04-07 Thread Michael Dautermann
I'm working on a project for the iPhone original it was c++ based and has the following lines #include kern/locks.h #include kern/thread.h It comes back with No such file or directory Yet I have Library/Frameworks/Kernel.framework/Versions/A/Headers/kern/locks.h Library/Frameworks

Re: kern/locks.h

2009-04-07 Thread Barry Fawthrop
Michael Dautermann wrote: I'm working on a project for the iPhone original it was c++ based and has the following lines #include kern/locks.h #include kern/thread.h It comes back with No such file or directory Yet I have Library/Frameworks/Kernel.framework/Versions/A/Headers/kern

Re: kern/locks.h

2009-04-07 Thread Dave Camp
On Apr 7, 2009, at 10:08 AM, Barry Fawthrop wrote: Michael Dautermann wrote: Thanks Michael Can you suggest some learning resources on how to (a) learn more and (b) accomplish an iPhone acceptable locking mechanism for the iPhone. For ported code, the pthreads library might be what you