Looking for C library "bbc.h"
Chris Dewhurst (1709) 167 posts |
Does anyone know where to get hold of this library please. Several listings I’m looking at call for “bbc.h” to be ‘#include’d but it isn’t provided within my copy of AcornC/C++ and I can’t find any sensible reference searching the internet. Or is it known as something different nowadays? Thanks. |
Rick Murray (539) 13840 posts |
Is it not a part of RISC_OSLib (not CLib)? |
Chris Dewhurst (1709) 167 posts |
Update: sorry it IS there in AcornC/C++.Libraries.RISC_OSLib |
Rick Murray (539) 13840 posts |
Does GCC load AOF libraries still? I may be wrong, but I seem to recall DeskLib having a similar set of routines. My version for AOF, or the GCCSDK version for AOF (old) / ELF (new). |
Rick Murray (539) 13840 posts |
Okay. At home now. (^_^) You may be able to find/build a copy of RISC_OSLib separate from the DDE. I’m looking at “bbc.h” and it is covered by the Castle licence applied to the open source code. At least, if it is the “bbc” stuff you want, you ought to be able to pick up the pieces from the source repository and roll your own mini-library. RISC_OSLib is rather badly put together – it’s all one source file, so if you only want Or… There is not an exact match for the BBC library in DeskLib. It depends what you want to do. For drawing ( For sound, there is only a “beep” in DeskLib. Looking at RISC_OSLib, all it is doing for the additional functionality is calling That leaves |
Chris Dewhurst (1709) 167 posts |
Thanks for all that Rick – I’ll take a look at DeskLib, also I found OSLib at http://ro-oslib.sourceforge.net/release-7.00.html #include “bbc.h” The !SetPaths app sets up RISC_OSLib$Path to point to SDFS::16GbPi.$.Programming. AcornC/C++.!SetPaths.^.Libraries.RISC_OSLib. But it’s throwing up Serious error: #include file “os.h” wouldn’t open. What am I doing wrong please? thanks |
Colin (478) 2433 posts |
It’s a while since I’ve used c from the command line – it’s easier to use the !cc app for small tests but
should work. |
Chris Mahoney (1684) 2165 posts |
I tend to use shared makefiles, in which case you can add |
David Pitt (102) 743 posts |
#include "bbc.h" int main (void) { bbc_mode(7); return 0; } This works :- *cc -IC:,risc_oslib: -LC:o.stubs,risc_oslib:o.risc_oslib prog.c |