New to OSLib

Adam lists at snowstone.org.uk
Sat Oct 27 17:08:55 BST 2007


In message <f82057384f.steve at helvellyn.stevefryatt.org.uk>, Steve Fryatt wrote:

> On 27 Oct, Adam wrote in message
>   <8bae55384f.admin at snowstone.org.uk>:
> 
> > I'd like to use the wimptextop bit of OSLib with a DeskLib-based program
> > but can't get seem to get it to work:
> > 
> > The readme talks about using OSLib: but SetVars uses OSLibInclude:
> > Presumably I should use the latter?
> 
> SetVars should contain both; OSLibInclude: is commented as for backwards
> compatibility, and OSLib: as being the presently preferred option.

Oh yes, sorry. I don't know what I was looking at.


> > Once I use OSLibInclude: I get a stream of errors because the #includes
> > in the OSLib header files use the form oslib/header.h rather than
> > OSLibInclude:header.h.
> 
> You want to add OSLib: to your include path (such as by adding -IOSLib: to
> your compile parameters -- at least with GCC).  Then access the headers in
> the form
> 
>   #include "oslib/header.h"
> 
> in your source.

Thanks, though I wanted to avoid having all the oslib headers on the
include path since I figured it'll just increase the potential for name
clashes a lot :(

I've just fiddled with this a bit and I'm still not really getting
anywhere. It's probably not worth it though - I think I'll just stick
with my DeskLib SWI() function call.

Cheers,
Adam

-- 
Adam Richardson          Carpe Diem
http://www.snowstone.org.uk/riscos/



More information about the oslib-user mailing list