Help please

Schaefer sf at bonn.iz-soz.de
Fri Dec 15 08:55:30 GMT 2000



> -----Original Message-----
> From: Simon Wilson [mailto:s.wilson at uea.ac.uk]
> Sent: Friday, December 15, 2000 1:01 AM
> To: oslib-user at compton.nu
> Subject: Help please
> 
> 
> Hi,
> 
> I've just installed OSLib on my computer and I'm having 
> problems getting
> anything to compile. I'm not a beginner with C++, but I am a 
> beginner with
> C++ on the RISC OS platform. I have got a working installation of GCC
> prerelease 3a on my Kinetic RiscPC. I also have the latest 
> version of OSLib.
> 
> After setting up the necessary environment variables, I tried 
> compiling the
> HelloWorld.c example with:
> 
> *gcc -o HelloWorld HelloWorld.c -IOSLib:

You want

*gcc -oHelloWorld HelloWorld.c -IOsLib: -lOslib:o.Oslib

as -I just appends the path to the header include path, which is fine for
usage with -c and then a separate link step, but to link directly against
Oslib you need the -l part above.

Hope that helps,

André



More information about the oslib-user mailing list