New to OSLib
Steve Fryatt
lists at stevefryatt.org.uk
Sat Oct 27 13:21:45 BST 2007
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.
> 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.
I'll leave the rest to someone who has used DeskLib.
--
Steve Fryatt - Leeds, England
http://www.stevefryatt.org.uk/
More information about the oslib-user
mailing list