John Tytgat wrote:
In message <[email protected]>
          Steve Fryatt <[email protected]> wrote:

Peter Naulls <[email protected]> wrote:

A simple Makefile might therefore look like this:


CFLAGS  = -I $(GCCSDK_INSTALL_ENV)/include
LDFLAGS = -L $(GCCSDK_INSTALL_ENV)/lib
etc.

OK, that all seems to work, and it's a lot neater than having to use the
riscos user -- thanks for the help.

It now falls over on linking, with "file not recognized: File format not
recognized" on the old OSLib32.o library.  I assume this to simply be AOF vs
ELF, in which case I'll return to it another day.

You need OSLib 7 but that hasn't been released yet.  An older set
of binaries can be found at <URL:http://joty.drobe.co.uk/oslib/>, if you
use UnixLib as runtime library, take the softfloat one; if you use
SharedUnixLibrary in your program, take the 'module' one (SCL build & SCL
for module build should be the same for OSLib).

In practice, it's probably just easier to build it yourself.  This is
very easy, e.g.:

/usr/src/gccsdk/autobuilder/build oslib

Also, DeskLib and a couple of other RISC OS libraries are there.

_______________________________________________
GCCSDK mailing list [email protected]
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to