Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: downward_s on September 09, 2004, 03:02:14 AM

Title: Using RTGMaster with GCC?
Post by: downward_s on September 09, 2004, 03:02:14 AM
Hi,

This is doing my nut in, so I just have to give in with my fiddling and post here.

I'm attempting to write some simple programs which open a screen and allow me to blit to it.

I've tried using CGX, and it seems like a good choice, but unfortunately it won't allow me to write AGA compatible code. (Yes, I really do want to, because I'd like to run the programs on my classics without GFX cards).

I decided to try out RTGMaster as it seems that any apps I write using it will work on both AGA and RTG. Sounds good. However, no matter how much fiddling I do, I just can't get any programs using RTGMaster functions to compile under GCC.

I just get linker errors, as such:

/t/ccGocLis.o(.text+0x16): undefined reference to `CloseRtgScreen'
/t/ccGocLis.o(.text+0x20a): undefined reference to `InitTimer'
/t/ccGocLis.o(.text+0x294): undefined reference to `RtgScreenModeReq'

I've installed the headers in the specified places, and also copied accross the GCC specific inline/RTGMaster.h. Still, even the included examples refuse to compile.

Since RTGMaster uses OpenLibrary() and CloseLibrary(), I shouldn't need to link any libraries using -l... right? Are there any other options I'm missing?

Thanks for reading.

David.