Beginner with OSLib

Schaefer sf at bonn.iz-soz.de
Mon Sep 18 11:03:50 BST 2000



> -----Original Message-----
> From: Tony van der Hoff [mailto:OSLib at mk-net.demon.co.uk]
> Sent: Monday, September 18, 2000 11:47 AM
> To: OSLib User
> Subject: Beginner with OSLib
> 
> 
> 
> 
>   ------- Forwarded message follows -------
 I wonder if you could help me to get going.

I have been using the GNU C Compiler !gcc with !Clib and !UnixLib37 and
as a means of learning how to use C. I now want to start writing Desktop
applications in C using OSLib, but don't seem to be able to get anything
to compile or link properly.

Do you have a boy's own guide of the steps I need to go through to set
up the files, pathnames & pointers etc, in simple terms, starting from
the point of downloading te files !

Cheers

Tony Balmer
------------------------------------------------

Dear Tony and Tony,

the one thing I have come across yet, is that types.h defines bool, which
the later GCC ports do not like as they have a builtin bool type.

If that is not your problem, please be more specific, with your problem
description.
Please try the examples from 
http://www.mk-net.demon.co.uk/oslib/

Try to compile that HelloWorld.c and tell us what happens exactly.

Presumbly you missed to tell GCC to search the OsLib headers by saying
-IOsLibInclude:
and you have to tell to link with OsLibInclude:o.oslib by appending this to
the list of files.

So try this one (Sorry if it's wrong, it's from memory):

gcc -v -IOsLibInclude HelloWorld.c OsLibInclude:o.oslib

Cheers,
André



More information about the oslib-user mailing list