gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Using libgba

#132899 - biubid_boy - Sun Jul 01, 2007 10:54 am

Hello everyone.
When I first started GBA programming, I used the very simple makefile from TONC to compile my projects, coupled with the '#includes' from the pern project. Now that I want to expand my projects, I want to use libgba and the default '#include' that are default with it. But, I can't seem to use
Code:
 #include <gba.h>
or link the library with the template makefile in devkitPro. What do I have to do to get it working?
Thanks,
Biubid_boy.

#133139 - tepples - Tue Jul 03, 2007 8:03 pm

biubid_boy wrote:
But, I can't seem to use
Code:
 #include <gba.h>
or link the library with the template makefile in devkitPro. What do I have to do to get it working?
Thanks,
Biubid_boy.

You have to specify the proper -I flags when compiling and -L flags when linking. Do you need more information?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.